]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 4 Jun 2019 06:07:34 +0000 (06:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2019 03:01:15 +0000 (20:01 -0700)
commit66d86f11ffa9ec4b0853ce9c06bddc826a6de4a0
treed2938a48d47ca100455c5d4be98b77d8eb2b8f95
parenta8e4ff0293e6a310b9a9ee2443359c9c2e1d0bae
net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set

There's some NICs, such as hinic, with NETIF_F_IP_CSUM and NETIF_F_TSO
on but NETIF_F_HW_CSUM off. And ipvlan device features will be
NETIF_F_TSO on with NETIF_F_IP_CSUM and NETIF_F_IP_CSUM both off as
IPVLAN_FEATURES only care about NETIF_F_HW_CSUM. So TSO will be
disabled in netdev_fix_features.
For example:
Features for enp129s0f0:
rx-checksumming: on
tx-checksumming: on
        tx-checksum-ipv4: on
        tx-checksum-ip-generic: off [fixed]
        tx-checksum-ipv6: on

Fixes: 0701e5491fe2 ("net: Rename NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c