diff options
author | Moshe Shemesh <moshe@mellanox.com> | 2016-09-22 12:11:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-24 08:01:27 -0400 |
commit | b42959dc35a533a531dd698b581193a65a5da831 (patch) | |
tree | 62b69ec85dbf6c9bf3b1a07ff33aba9dbf5ef174 /Documentation | |
parent | 79aab093a0b5370d7fc4e99df75996f4744dc03f (diff) |
net/mlx4: Add VF vlan protocol 802.1ad support
Move the vf to VST 802.1ad mode (mlx4 VST QinQ mode) by setting vf vlan
protocol to 802.1ad.
VST 802.1ad mode in mlx4, is used for STAG strip/insertion by PF, while
the CTAG is set by the VF.
Read current vlan protocol as part of the vf configuration state.
Upon setting vf vlan protocol to 802.1ad, we use a mechanism of handshake
to verify that both the vf and the pf driver version support it.
The handshake uses the command QUERY_FUNC_CAP:
- The vf sets a pre-defined support bit in input modifier.
- A pf that supports the feature sends the request to the vf through a
pre-defined field in the output mailbox.
- In case vf does not support the feature, the pf will fail the control
command (in this case, IP link tool command to set the vf vlan
protocol to 802.1ad).
No change in VST 802.1Q mode.
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions