1. 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
  2. 09 1月, 2013 4 次提交
  3. 08 1月, 2013 4 次提交
    • A
      bnx2x: Segregate SR-IOV code · 6411280a
      Ariel Elior 提交于
      In this patch the SR-IOV code is segregated from the main bulk of
      the bnx2x code. The CONFIG_BNX2X_SRIOV define is added to Broadcom's
      Kconfig, and allows the elision of the building of all the SR-IOV
      support code in the driver.
      The define is dependant on the kernel CONFIG_PCI_IOV configuration
      define.
      Signed-off-by: NAriel Elior <ariele@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6411280a
    • F
      net: fec: report correct hardware stamping info to ethtool · 5ebae489
      Frank Li 提交于
      Report correct hardware stamping capability by ethtool interface.
      The v1.0 ptp4l check it.
      Signed-off-by: NFrank Li <Frank.Li@freescale.com>
      Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ebae489
    • E
      veth: avoid a NULL deref in veth_stats_one · d0e2c55e
      Eric Dumazet 提交于
      commit 2681128f (veth: extend device features) added a NULL deref
      in veth_stats_one(), as veth_get_stats64() was not testing if the peer
      device was setup or not.
      
      At init time, we call dev_get_stats() before veth pair is fully setup.
      
      [  178.854758]  [<ffffffffa00f5677>] veth_get_stats64+0x47/0x70 [veth]
      [  178.861013]  [<ffffffff814f0a2d>] dev_get_stats+0x6d/0x130
      [  178.866486]  [<ffffffff81504efc>] rtnl_fill_ifinfo+0x47c/0x930
      [  178.872299]  [<ffffffff81505b93>] rtmsg_ifinfo+0x83/0x100
      [  178.877678]  [<ffffffff81505cc6>] rtnl_configure_link+0x76/0xa0
      [  178.883580]  [<ffffffffa00f52fa>] veth_newlink+0x16a/0x350 [veth]
      [  178.889654]  [<ffffffff815061cc>] rtnl_newlink+0x4dc/0x5e0
      [  178.895128]  [<ffffffff81505e1e>] ? rtnl_newlink+0x12e/0x5e0
      [  178.900769]  [<ffffffff8150587d>] rtnetlink_rcv_msg+0x11d/0x310
      [  178.906669]  [<ffffffff81505760>] ? __rtnl_unlock+0x20/0x20
      [  178.912225]  [<ffffffff81521f89>] netlink_rcv_skb+0xa9/0xd0
      [  178.917779]  [<ffffffff81502d55>] rtnetlink_rcv+0x25/0x40
      [  178.923159]  [<ffffffff815218d1>] netlink_unicast+0x1b1/0x230
      [  178.928887]  [<ffffffff81521c4e>] netlink_sendmsg+0x2fe/0x3b0
      [  178.934615]  [<ffffffff814dbe22>] sock_sendmsg+0xd2/0xf0
      
      So we must check if peer was setup in veth_get_stats64()
      
      As pointed out by Ben Hutchings, priv->peer is missing proper
      synchronization. Adding RCU protection is a safe and well documented
      way to make sure we don't access about to be freed or already
      freed data.
      Reported-by: NTom Parkin <tparkin@katalix.com>
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      CC: Ben Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d0e2c55e
    • J
      chelsio: Use netdev_<level> and pr_<level> · 428ac43f
      Joe Perches 提交于
      Use more current logging styles.
      
      Convert printks to pr_<level> and
      printks with ("%s: ...", dev->name to netdev_<level>(dev, "...
      
      Add pr_fmt #defines where appropriate.
      Coalesce formats.
      Use pr_<level>_once where appropriate.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      428ac43f
  4. 07 1月, 2013 10 次提交
  5. 05 1月, 2013 11 次提交
  6. 04 1月, 2013 3 次提交
  7. 03 1月, 2013 3 次提交
  8. 02 1月, 2013 4 次提交