1. 30 Jul, 2015 5 commits
  2. 29 Jul, 2015 32 commits
  3. 27 Jul, 2015 3 commits
    • 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
    • Hadar Hen Zion's avatar
      net/mlx4: Prepare VLAN macros for 802.1ad Hardware accelerated support · e802f8e4
      Hadar Hen Zion authored
      To add Hardware accelerated support in 802.1ad vlan, replace
      Current VLAN macros to CVLAN.
      Replace:
      MLX4_WQE_CTRL_INS_VLAN
      MLX4_CQE_VLAN_PRESENT_MASK
      With:
      MLX4_WQE_CTRL_INS_CVLAN
      MLX4_CQE_CVLAN_PRESENT_MASK
      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>
      e802f8e4