diff options
author | Emeel Hakim <ehakim@nvidia.com> | 2023-04-19 16:21:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-21 09:22:15 +0200 |
commit | 339ccec8d43d004a377b01e1a9a85487f95e8f13 (patch) | |
tree | 142efa9f67d56622476b4965e05c62462862dba2 | |
parent | vlan: Add MACsec offload operations for VLAN interface (diff) | |
download | linux-339ccec8d43d004a377b01e1a9a85487f95e8f13.tar.xz linux-339ccec8d43d004a377b01e1a9a85487f95e8f13.zip |
net/mlx5: Enable MACsec offload feature for VLAN interface
Enable MACsec offload feature over VLAN by adding NETIF_F_HW_MACSEC
to the device vlan_features.
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 7eb1eeb115ca..2fda7385de71 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -5109,6 +5109,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev) netdev->vlan_features |= NETIF_F_SG; netdev->vlan_features |= NETIF_F_HW_CSUM; + netdev->vlan_features |= NETIF_F_HW_MACSEC; netdev->vlan_features |= NETIF_F_GRO; netdev->vlan_features |= NETIF_F_TSO; netdev->vlan_features |= NETIF_F_TSO6; |