]> git.baikalelectronics.ru Git - kernel.git/commit
net/macsec: Add MACsec skb_metadata_dst Tx Data path support
authorLior Nahmanson <liorna@nvidia.com>
Tue, 6 Sep 2022 05:21:13 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2022 13:02:08 +0000 (14:02 +0100)
commit7147f26cccd60adb577322f77bc34b6f84496458
treedb9ef7de56c8de64dcbf441f7f3f359d0854261a
parent01ea3b178589f92a837af5946edef36e1ec6064d
net/macsec: Add MACsec skb_metadata_dst Tx Data path support

In the current MACsec offload implementation, MACsec interfaces shares
the same MAC address by default.
Therefore, HW can't distinguish from which MACsec interface the traffic
originated from.

MACsec stack will use skb_metadata_dst to store the SCI value, which is
unique per Macsec interface, skb_metadat_dst will be used by the
offloading device driver to associate the SKB with the corresponding
offloaded interface (SCI).

Signed-off-by: Lior Nahmanson <liorna@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c
include/net/dst_metadata.h
include/net/macsec.h