1. 30 7月, 2015 14 次提交
  2. 29 7月, 2015 23 次提交
  3. 28 7月, 2015 3 次提交
    • D
      Merge branch 'mlx4-802.1ad-accel' · 8c1a91f1
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      8c1a91f1
    • H
      net/mlx4_en: Add support for hardware accelerated 802.1ad vlan · e38af4fa
      Hadar Hen Zion 提交于
      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: NHadar Hen Zion <hadarh@mellanox.com>
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e38af4fa
    • H
      net/mlx4: Prepare VLAN macros for 802.1ad Hardware accelerated support · e802f8e4
      Hadar Hen Zion 提交于
      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: NHadar Hen Zion <hadarh@mellanox.com>
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e802f8e4