diff options
author | Yonglong Liu <liuyonglong@huawei.com> | 2019-07-03 19:12:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-03 11:48:49 -0700 |
commit | 0d581ba311a27762fe1a14e5db5f65d225b3d844 (patch) | |
tree | 2ee59baeb8459862b8e437ae49725fd739e4093f | |
parent | 7af033010214f2c7cff31147d8970484d46cc14c (diff) | |
download | linux-0d581ba311a27762fe1a14e5db5f65d225b3d844.tar.gz linux-0d581ba311a27762fe1a14e5db5f65d225b3d844.tar.bz2 linux-0d581ba311a27762fe1a14e5db5f65d225b3d844.zip |
net: hns: add support for vlan TSO
The hip07 chip support vlan TSO, this patch adds NETIF_F_TSO
and NETIF_F_TSO6 flags to vlan_features to improve the
performance after adding vlan to the net ports.
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_enet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index fe879c07ae3c..2235dd55fab2 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -2370,6 +2370,7 @@ static int hns_nic_dev_probe(struct platform_device *pdev) ndev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO | NETIF_F_TSO | NETIF_F_TSO6; + ndev->vlan_features |= NETIF_F_TSO | NETIF_F_TSO6; ndev->max_mtu = MAC_MAX_MTU_V2 - (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); break; |