Re: [PATCH] net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set

2019-06-04 Thread David Miller
From: Miaohe Lin Date: Tue, 4 Jun 2019 06:07:34 + > 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

[PATCH] net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set

2019-06-03 Thread Miaohe Lin
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.