1. 30 3月, 2017 4 次提交
    • P
      net: veth: use new api ethtool_{get|set}_link_ksettings · 56607b98
      Philippe Reynes 提交于
      The ethtool api {get|set}_settings is deprecated.
      We move this driver to new api {get|set}_link_ksettings.
      Signed-off-by: NPhilippe Reynes <tremyfr@gmail.com>
      Reviewed-by: NXin Long <lucien.xin@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56607b98
    • D
      Merge tag 'mlx5e-pedit' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 6c225706
      David S. Miller 提交于
      Or Gerlitz says:
      
      ====================
      mlx5e-pedit 2017-03-28
      
      This series adds support for offloading modifications of packet headers using
      ConnectX-5 HW header re-write as an action applied during packet steering.
      
      The offloaded SW mechanism is TC's pedit action. The offloading is
      supported for E-Switch steering of VF traffic in the SRIOV
      switchdev mode and for NIC (non eswitch) RX.
      
      One use-case for this offload on virtual networks, is when the hypervisor
      implements flow based router such as Open-Stack's DVR, where L2 headers
      of guest packets re-written with routers' MAC addresses and the IP TTL
      is decremented.
      
      Another use case (which can be applied in parallel with routing) is
      stateless NAT where guest L3/L4 headers are re-written.
      
      The series is built as follows: the 1st six patches are preperations which
      don't yet add new functionality, patches 7-8 add the FW APIs (data-structures
      and commands) for header re-write, and patch nine allows offloading driver
      to access pedit keys.
      
      The 10th patch is somehow the core of the series, where we translate from
      the pedit way to represent set of header modification elements to the FW
      API for that same matter.
      
      Once a set of HW modification is established, we register it with the FW
      and get a modify header ID. When this ID is used with an action during
      packet steering, the HW applies the header modification on the packet.
      
      Patches 11 and 12 implement the above logic as an offload for pedit action
      for the NIC and E-Switch use-cases.
      
      I'd like to thanks Elijah Shakkour <elijahs@mellanox.com> for implementing
      and helping me testing this functionality on HW simulator, before it could
      be done with FW.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6c225706
    • D
      net: mpls: Update lfib_nlmsg_size to skip deleted nexthops · e944e97a
      David Ahern 提交于
      A recent commit skips nexthops in a route if the device has been
      deleted. Update lfib_nlmsg_size accordingly.
      Reported-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
      Signed-off-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Acked-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
      Acked-by: NRobert Shearman <rshearma@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e944e97a
    • F
      net: phy: Allow building mdio-boardinfo into the kernel · d0281a56
      Florian Fainelli 提交于
      mdio-boardinfo contains code that is helpful for platforms to register
      specific MDIO bus devices independent of how CONFIG_MDIO_DEVICE or
      CONFIG_PHYLIB will be selected (modular or built-in). In order to make
      that possible, let's do the following:
      
      - descend into drivers/net/phy/ unconditionally
      
      - make mdiobus_setup_mdiodev_from_board_info() take a callback argument
        which allows us not to expose the internal MDIO board info list and
        mutex, yet maintain the logic within the same file
      
      - relocate the code that creates a MDIO device into
        drivers/net/phy/mdio_bus.c
      
      - build mdio-boardinfo.o into the kernel as soon as MDIO_DEVICE is
        defined (y or m)
      
      Fixes: 90eff909 ("net: phy: Allow splitting MDIO bus/device support from PHYs")
      Fixes: 648ea013 ("net: phy: Allow pre-declaration of MDIO devices")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Tested-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d0281a56
  2. 29 3月, 2017 36 次提交