diff options
author | Subbaraya Sundeep <sbhatta@marvell.com> | 2023-05-10 13:58:09 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-10 11:32:09 +0100 |
commit | bd9424efc4825ecfc84cd81be777df71ba4404d1 (patch) | |
tree | 4a32bac31f5c2368eb6c2b15612833855d020510 /net/key | |
parent | 2f0f556713f08515f3017fd35309b1f00fbc8932 (diff) | |
download | linux-stable-bd9424efc4825ecfc84cd81be777df71ba4404d1.tar.gz linux-stable-bd9424efc4825ecfc84cd81be777df71ba4404d1.tar.bz2 linux-stable-bd9424efc4825ecfc84cd81be777df71ba4404d1.zip |
macsec: Use helper macsec_netdev_priv for offload drivers
Now macsec on top of vlan can be offloaded to macsec offloading
devices so that VLAN tag is sent in clear text on wire i.e,
packet structure is DMAC|SMAC|VLAN|SECTAG. Offloading devices can
simply enable NETIF_F_HW_MACSEC feature in netdev->vlan_features for
this to work. But the logic in offloading drivers to retrieve the
private structure from netdev needs to be changed to check whether
the netdev received is real device or a vlan device and get private
structure accordingly. This patch changes the offloading drivers to
use helper macsec_netdev_priv instead of netdev_priv.
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions