Skip to content

Commit 339ccec

Browse files
Emeel Hakimdavem330
authored andcommitted
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>
1 parent abff3e5 commit 339ccec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5109,6 +5109,7 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
51095109

51105110
netdev->vlan_features |= NETIF_F_SG;
51115111
netdev->vlan_features |= NETIF_F_HW_CSUM;
5112+
netdev->vlan_features |= NETIF_F_HW_MACSEC;
51125113
netdev->vlan_features |= NETIF_F_GRO;
51135114
netdev->vlan_features |= NETIF_F_TSO;
51145115
netdev->vlan_features |= NETIF_F_TSO6;

0 commit comments

Comments
 (0)