mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
net/mlx5e: Report netdevice MPLS features
Set supported device features in the netdevice MPLS features mask. This will enable HW checksumming and TSO for MPLS tagged traffic. Signed-off-by: Ariel Levkovich <lariel@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
e4683f35f8
commit
5dc9520bf0
@@ -4624,6 +4624,11 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
|
||||
netdev->vlan_features |= NETIF_F_RXCSUM;
|
||||
netdev->vlan_features |= NETIF_F_RXHASH;
|
||||
|
||||
netdev->mpls_features |= NETIF_F_SG;
|
||||
netdev->mpls_features |= NETIF_F_HW_CSUM;
|
||||
netdev->mpls_features |= NETIF_F_TSO;
|
||||
netdev->mpls_features |= NETIF_F_TSO6;
|
||||
|
||||
netdev->hw_enc_features |= NETIF_F_HW_VLAN_CTAG_TX;
|
||||
netdev->hw_enc_features |= NETIF_F_HW_VLAN_CTAG_RX;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user