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)
commit0a28bfd4971fd570d1f3e4653b21415becefc92c
treedb9ef7de56c8de64dcbf441f7f3f359d0854261a
parentda7d8e65b3fcebce0a2f606669cabce64fca0475
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