提交 e486973e 编写于 作者: Y Yevgeny Petrilin 提交者: David S. Miller

mlx4_en: Added vlan_features support

Signed-off-by: NYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f813cad8
...@@ -1038,7 +1038,9 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, ...@@ -1038,7 +1038,9 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
* Set driver features * Set driver features
*/ */
dev->features |= NETIF_F_SG; dev->features |= NETIF_F_SG;
dev->vlan_features |= NETIF_F_SG;
dev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; dev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
dev->vlan_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
dev->features |= NETIF_F_HIGHDMA; dev->features |= NETIF_F_HIGHDMA;
dev->features |= NETIF_F_HW_VLAN_TX | dev->features |= NETIF_F_HW_VLAN_TX |
NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_RX |
...@@ -1048,6 +1050,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, ...@@ -1048,6 +1050,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
if (mdev->LSO_support) { if (mdev->LSO_support) {
dev->features |= NETIF_F_TSO; dev->features |= NETIF_F_TSO;
dev->features |= NETIF_F_TSO6; dev->features |= NETIF_F_TSO6;
dev->vlan_features |= NETIF_F_TSO;
dev->vlan_features |= NETIF_F_TSO6;
} }
mdev->pndev[port] = dev; mdev->pndev[port] = dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册