Skip to content
  1. Jul 30, 2015
  2. Jul 29, 2015
  3. Jul 28, 2015
    • David S. Miller's avatar
      Merge branch 'mlx4-802.1ad-accel' · 8c1a91f1
      David S. Miller authored
      Amir Vadai says:
      
      ====================
      net/mlx4_en: Hardware accelerated 802.1ad
      
      This patchset by Hadar introduces support in Hardware accelerated 802.1ad, for
      ConnectX-3pro NIC's.  In order to support existing deployment, and due to some
      hardware limitations, the feature is disabled by default, and needed to be
      enabled using a private flag in ethtool. Ofcourse user can enable the private
      flag only if hardware has support.
      After being enabled, the standard ethtool -k/-K can be used.
      
      Patchset was applied and tested over commit 71790a27
      
       ("hv_netvsc: Add structs
      and handlers for VF messages")
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8c1a91f1
    • Hadar Hen Zion's avatar
      net/mlx4_en: Add support for hardware accelerated 802.1ad vlan · e38af4fa
      Hadar Hen Zion authored
      
      
      To enable device support in accelerated 802.1ad vlan, the port
      capability "packet has vlan enable" (phv_en) should be set.
      Firmware won't work properly, in case phv_en is not set.
      
      The user can enable "phv_en" port capability with the new ethtool
      private flag phv-bit. The phv-bit private flag default value is OFF,
      users who are interested in 802.1ad hardware acceleration should turn ON
      the phv-bit private flag:
      $ ethtool --set-priv-flags eth1 phv-bit on
      
      Once the private flag is set, the device is ready for 802.1ad vlan
      acceleration.
      
      The user should also change the interface device features and turn on
      "tx-vlan-stag-hw-insert" which is off by default:
      $ ethtool -K eth1  tx-vlan-stag-hw-insert on
      
      "phv-bit" private flag setting is available only for Physical
      Functions(PF), the Virtual Function (VF) will be able to use the feature
      by setting "tx-vlan-stag-hw-insert" ethtool device feature only if the
      feature was enabled by the Hypervisor.
      
      Signed-off-by: default avatarHadar Hen Zion <hadarh@mellanox.com>
      Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e38af4fa