[PATCH v2 3/3] net: checksum: Introduce fine control over checksum type

2020-12-11 Thread Bin Meng
From: Bin Meng At present net_checksum_calculate() blindly calculates all types of checksums (IP, TCP, UDP). Some NICs may have a per type setting in their BDs to control what checksum should be offloaded. To support such hardware behavior, introduce a 'csum_flag' parame

Re: [PATCH 3/3] net: checksum: Introduce fine control over checksum type

2020-12-06 Thread Bin Meng
Hi Philippe, On Sun, Dec 6, 2020 at 7:50 PM Philippe Mathieu-Daudé wrote: > > Hi Ben, > > On 12/6/20 3:14 AM, Bin Meng wrote: > > From: Bin Meng > > > > At present net_checksum_calculate() blindly calculates all types of > > checksums (IP, TCP, UDP). Some

[PATCH 3/3] net: checksum: Introduce fine control over checksum type

2020-12-05 Thread Bin Meng
From: Bin Meng At present net_checksum_calculate() blindly calculates all types of checksums (IP, TCP, UDP). Some NICs may have a per type setting in their BDs to control what checksum should be offloaded. To support such hardware behavior, introduce a 'csum_flag' parame