Files
twx-linux/include/linux
Hadar Hen Zion e38af4faf0 net/mlx4_en: Add support for hardware accelerated 802.1ad vlan
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: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-27 15:00:37 -07:00
..
2015-07-17 16:39:53 -07:00
…
2015-06-25 11:49:31 +03:00
…
…
2015-05-27 12:42:16 -07:00
…
2015-05-31 13:40:53 +02:00
2015-05-13 12:04:55 -05:00
…
…
…
2015-07-07 22:48:25 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-02 08:33:34 -06:00
…
…
…
2015-06-01 14:35:56 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-24 17:49:45 -07:00
…
…
…
…
…
…
…
…
…
…
…
2015-05-12 10:46:53 +02:00
…
…
…
…
2015-06-01 14:33:35 +02:00
…
…
…
…
…
…
…
…
2015-06-19 15:18:28 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-25 12:06:45 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-24 17:49:41 -07:00
…
…
…
…
2015-07-21 10:39:05 -07:00
…
…
…
…
…
…
…
…
…
…
2015-06-25 04:20:04 -04:00
2015-05-09 22:15:31 -04:00
…
…
…
…
…
…
…
2015-07-04 14:04:44 -04:00
…
…
2015-06-05 10:58:34 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-19 01:18:14 +02:00
…
…
…
…
…
…
…
…
…
…
…
2015-06-12 11:36:30 +02:00
…
…
…
2015-06-10 19:14:04 +08:00
…
…
2015-05-27 12:58:04 -07:00
…
…
…
…
…
…
…
2015-05-26 15:23:23 +02:00
…
…
…
…
2015-06-25 01:13:43 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-23 18:01:07 -04:00
…
…
…
…
…
…
…
…
…
…
2015-07-21 10:39:06 -07:00
2015-06-29 10:49:51 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-25 17:00:40 -07:00
…
…
…
…
2015-05-19 09:19:59 -06:00
…
…
…
…
2015-06-25 17:00:39 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-05-18 14:08:58 -07:00
2015-05-29 17:21:45 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-12 17:26:57 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-25 17:00:37 -07:00
…