Re: [RFC net-next 2/2] net: disable UDP GSO feature when CSUM is disabled

2020-07-08 Thread tanhuazhong
On 2020/7/9 10:47, Eric Dumazet wrote: On 7/8/20 7:30 PM, tanhuazhong wrote: On 2020/7/8 13:36, Eric Dumazet wrote: On 7/7/20 8:48 PM, Huazhong Tan wrote: Since UDP GSO feature is depended on checksum offload, so disable UDP GSO feature when CSUM is disabled, then from user-space also

Re: [RFC net-next 2/2] net: disable UDP GSO feature when CSUM is disabled

2020-07-08 Thread Eric Dumazet
On 7/8/20 7:30 PM, tanhuazhong wrote: > > > On 2020/7/8 13:36, Eric Dumazet wrote: >> >> >> On 7/7/20 8:48 PM, Huazhong Tan wrote: >>> Since UDP GSO feature is depended on checksum offload, so disable >>> UDP GSO feature when CSUM is disabled, then from user-space also >>> can see UDP GSO feat

Re: [RFC net-next 2/2] net: disable UDP GSO feature when CSUM is disabled

2020-07-08 Thread tanhuazhong
On 2020/7/8 13:36, Eric Dumazet wrote: On 7/7/20 8:48 PM, Huazhong Tan wrote: Since UDP GSO feature is depended on checksum offload, so disable UDP GSO feature when CSUM is disabled, then from user-space also can see UDP GSO feature is disabled. Signed-off-by: Huazhong Tan --- net/core/

Re: [RFC net-next 2/2] net: disable UDP GSO feature when CSUM is disabled

2020-07-07 Thread Eric Dumazet
On 7/7/20 8:48 PM, Huazhong Tan wrote: > Since UDP GSO feature is depended on checksum offload, so disable > UDP GSO feature when CSUM is disabled, then from user-space also > can see UDP GSO feature is disabled. > > Signed-off-by: Huazhong Tan > --- > net/core/dev.c | 6 ++ > 1 file chan

[RFC net-next 2/2] net: disable UDP GSO feature when CSUM is disabled

2020-07-07 Thread Huazhong Tan
Since UDP GSO feature is depended on checksum offload, so disable UDP GSO feature when CSUM is disabled, then from user-space also can see UDP GSO feature is disabled. Signed-off-by: Huazhong Tan --- net/core/dev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/core/dev.c b/net/co