• Emeel Hakim's avatar
    net/mlx5: Consider VLAN interface in MACsec TX steering rules · 765f974c
    Emeel Hakim authored
    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: default avatarEmeel Hakim <ehakim@nvidia.com>
    Reviewed-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    765f974c
macsec_fs.c 39.6 KB