1. 18 6月, 2016 1 次提交
  2. 25 2月, 2016 1 次提交
    • A
      bnx2x: add a separate GENEVE Kconfig symbol · 4fee7dab
      Arnd Bergmann 提交于
      When CONFIG_GENEVE is built as a loadable module, and bnx2x is built-in,
      we get this link error:
      
      drivers/net/built-in.o: In function `bnx2x_open':
      :(.text+0x33322): undefined reference to `geneve_get_rx_port'
      drivers/net/built-in.o: In function `bnx2x_sp_rtnl_task':
      :(.text+0x3e632): undefined reference to `geneve_get_rx_port'
      
      This avoids the problem by adding a separate Kconfig symbol named
      CONFIG_BNX2X_GENEVE that is only enabled when the code is
      reachable from the driver.
      
      This is the same trick that BNX2X does for VXLAN support, and
      is similar to how I40E handles both.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 883ce97d ("bnx2x: Add Geneve inner-RSS support")
      Acked-By: NYuval Mintz <Yuval.Mintz@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4fee7dab
  3. 30 1月, 2016 1 次提交
    • A
      net: bgmac: clarify CONFIG_BCMA dependency · 1f820f53
      Arnd Bergmann 提交于
      The bgmac driver depends on BCMA_HOST_SOC, which is only used
      when CONFIG_BCMA is enabled. However, it is a bool option and can
      be set when CONFIG_BCMA=m, and then bgmac can be built-in, leading
      to an obvious link error:
      
      drivers/built-in.o: In function `bgmac_init':
      :(.init.text+0x7f2c): undefined reference to `__bcma_driver_register'
      drivers/built-in.o: In function `bgmac_exit':
      :(.exit.text+0x110a): undefined reference to `bcma_driver_unregister'
      
      To avoid this case, we need to depend on both BCMA and BCMA_SOC,
      as this patch does. I'm also trying to make the dependency more
      readable by splitting it into three lines, and adding a COMPILE_TEST
      alternative so we can test-build it in all configurations that
      support BCMA.
      
      The added dependency on FIXED_PHY addresses a related issue where
      we cannot call fixed_phy_register() when CONFIG_FIXED_PHY=m and
      CONFIG_BGMAC=y.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f820f53
  4. 05 11月, 2015 1 次提交
    • A
      bnxt_en: add VXLAN dependency · df761ea1
      Arnd Bergmann 提交于
      VXLAN may be a loadable module, and this driver cannot be built-in
      in that case, or we get a link error:
      
      drivers/built-in.o: In function `__bnxt_open_nic':
      drivers/net/ethernet/broadcom/bnxt/bnxt.c:4581: undefined reference to `vxlan_get_rx_port'
      
      This adds a Kconfig dependency that ensures that either VXLAN is
      disabled (which the driver handles correctly), or we depend on
      VXLAN itself and disallow built-in compilation when VXLAN is
      a module.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: c0c050c5 ("bnxt_en: New Broadcom ethernet driver.")
      Acked-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      df761ea1
  5. 23 10月, 2015 1 次提交
    • M
      bnxt_en: New Broadcom ethernet driver. · c0c050c5
      Michael Chan 提交于
      Broadcom ethernet driver for the new family of NetXtreme-C/E
      ethernet devices.
      
      v5:
        - Removed empty blank lines at end of files (noted by David Miller).
        - Moved busy poll helper functions to bnxt.h to at least make the
          .c file look less cluttered with #ifdef (noted by Stephen Hemminger).
      
      v4:
        - Broke up 2 long message strings with "\n" (suggested by John Linville)
        - Constify an array of strings (suggested by Stephen Hemminger)
        - Improve bnxt_vf_pciid() (suggested by Stephen Hemminger)
        - Use PCI_VDEVICE() to populate pci_device_id table for more compact
          source.
      
      v3:
        - Fixed 2 more sparse warnings.
        - Removed some unused structures in .h files.
      
      v2:
        - Fixed all kbuild test robot reported warnings.
        - Fixed many of the checkpatch.pl errors and warnings.
        - Fixed the Kconfig description (noted by Dmitry Kravkov).
      Acked-by: NEddie Wai <eddie.wai@broadcom.com>
      Acked-by: NJeffrey Huang <huangjw@broadcom.com>
      Signed-off-by: NPrashant Sreedharan <prashant@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c0c050c5
  6. 19 8月, 2015 1 次提交
  7. 23 6月, 2015 1 次提交
    • P
      drivers/net: remove all references to obsolete Ethernet-HOWTO · 138b15ed
      Paul Gortmaker 提交于
      This howto made sense in the 1990s when users had to manually configure
      ISA cards with jumpers or vendor utilities, but with the implementation
      of PCI it became increasingly less and less relevant, to the point where
      it has been well over a decade since I last updated it.  And there is
      no value in anyone else taking over updating it either.
      
      However the references to it continue to spread as boiler plate text
      from one Kconfig file into the next.  We are not doing end users any
      favours by pointing them at this old document, so lets kill it with
      fire, once and for all, to hopefully stop any further spread.
      
      No code is changed in this commit, just Kconfig help text.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      138b15ed
  8. 21 3月, 2015 1 次提交
  9. 21 2月, 2015 1 次提交
  10. 16 12月, 2014 2 次提交
  11. 09 12月, 2014 1 次提交
  12. 06 9月, 2014 1 次提交
  13. 26 8月, 2014 1 次提交
    • R
      net: bnx2x: fix build error with ptp · f79918af
      Randy Dunlap 提交于
      bnx2x uses ptp functions, so it should select the provider of
      those functions (PTP_1588_CLOCK).  Fixes these build errors:
      
      drivers/built-in.o: In function `__bnx2x_remove':
      /home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13409:
      undefined reference to `ptp_clock_unregister'
      drivers/built-in.o: In function `bnx2x_register_phc':
      /home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13202:
      undefined reference to `ptp_clock_register'
      drivers/built-in.o: In function `bnx2x_get_ts_info':
      /home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:3498:
      undefined reference to `ptp_clock_index'
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f79918af
  14. 26 6月, 2014 2 次提交
  15. 27 4月, 2014 1 次提交
  16. 14 2月, 2014 1 次提交
  17. 21 12月, 2013 1 次提交
    • H
      b44: add phylib support · 86f4ea63
      Hauke Mehrtens 提交于
      Most of the older home routers based on the Broadcom BCM47XX SoC series
      are using a MAC that is supported by b44. On most of these routers not
      the internal PHY of this MAC core is used, but a switch sometimes on an
      external chip or integrated into the same SoC as the Ethernet core.
      For this switch a special PHY driver is needed which should not be
      integrated into b44 as the same switches are also used by other
      Broadcom home networking SoCs which are using different Ethernet MAC
      drivers. This was tested with the b53 switch driver which is currently
      on its way to mainline.
      
      If the internal PHY is not used, b44 will now search on the MDIO bus
      for a phy and use the Linux phylib subsystem to register a driver.
      Support for the internal PHY must stay here, because there are some
      device which are suing the internal phy.
      
      With this patch we scan the mdio bus when the sprom or nvram says that
      the PHY address is 30, if a PHY was found at this address b44 uses it.
      
      This was tested with a BCM4704, BCM4712 and BCM5354.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86f4ea63
  18. 24 7月, 2013 1 次提交
  19. 17 7月, 2013 1 次提交
  20. 20 6月, 2013 1 次提交
  21. 10 1月, 2013 1 次提交
    • R
      bgmac: driver for GBit MAC core on BCMA bus · dd4544f0
      Rafał Miłecki 提交于
      BCMA is a Broadcom specific bus with devices AKA cores. All recent BCMA
      based SoCs have gigabit ethernet provided by the GBit MAC core. This
      patch adds driver for such a cores registering itself as a netdev. It
      has been tested on a BCM4706 and BCM4718 chipsets.
      
      In the kernel tree there is already b44 driver which has some common
      things with bgmac, however there are many differences that has led to
      the decision or writing a new driver:
      1) GBit MAC cores appear on BCMA bus (not SSB as in case of b44)
      2) There is 64bit DMA engine which differs from 32bit one
      3) There is no CAM (Content Addressable Memory) in GBit MAC
      4) We have 4 TX queues on GBit MAC devices (instead of 1)
      5) Many registers have different addresses/values
      6) RX header flags are also different
      
      The driver in it's state is functional how, however there is of course
      place for improvements:
      1) Supporting more net_device_ops
      2) SUpporting more ethtool_ops
      3) Unaligned addressing in DMA
      4) Writing separated PHY driver
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd4544f0
  22. 08 1月, 2013 1 次提交
  23. 05 12月, 2012 1 次提交
  24. 02 10月, 2012 1 次提交
  25. 16 9月, 2011 1 次提交
  26. 27 8月, 2011 1 次提交
    • J
      drivers/net/ethernet/*: Enabled vendor Kconfig options · 88f07484
      Jeff Kirsher 提交于
      Based on finds for Stephen Rothwell, where current defconfig's
      enable a ethernet driver and it is not compiled due to the newly
      added NET_VENDOR_* component of Kconfig.
      
      This patch enables all the "new" Kconfig options so that current
      defconfig's will continue to compile the expected drivers.  In
      addition, by enabling all the new Kconfig options does not add
      any un-expected options.
      
      CC: Stephen Rothwll <sfc@canb.auug.org.au>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      88f07484
  27. 11 8月, 2011 1 次提交
    • J
      broadcom: Move the Broadcom drivers · adfc5217
      Jeff Kirsher 提交于
      Moves the drivers for Broadcom devices into
      drivers/net/ethernet/broadcom/ and the necessary Kconfig and Makefile
      changes.
      
      CC: Eilon Greenstein <eilong@broadcom.com>
      CC: Michael Chan <mchan@broadcom.com>
      CC: Matt Carlson <mcarlson@broadcom.com>
      CC: Gary Zambrano <zambrano@broadcom.com>
      CC: "Maciej W. Rozycki" <macro@linux-mips.org>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      adfc5217