diff options
author | Emeel Hakim <ehakim@nvidia.com> | 2023-04-19 17:21:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-21 10:22:15 +0300 |
commit | 765f974c7dfd104ed569fae1669adfc0e70ded1b (patch) | |
tree | bd5d18a8835fc2d7126250a3baf71deaad0f6c78 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4bba492b04270c29259594d1b9ee66ce96af9466 (diff) | |
download | linux-765f974c7dfd104ed569fae1669adfc0e70ded1b.tar.xz |
net/mlx5: Consider VLAN interface in MACsec TX steering rules
Offloading MACsec when its configured over VLAN with current MACsec
TX steering rules will wrongly insert MACsec sec tag after inserting
the VLAN header leading to a ETHERNET | SECTAG | VLAN packet when
ETHERNET | VLAN | SECTAG is configured.
The above issue is due to adding the SECTAG by HW which is a later
stage compared to the VLAN header insertion stage.
Detect such a case and adjust TX steering rules to insert the
SECTAG in the correct place by using reformat_param_0 field in
the packet reformat to indicate the offset of SECTAG from end of
the MAC header to account for VLANs in granularity of 4Bytes.
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions