ACK+Cmnt: [PATCH] net/mlx5e: Check tunnel offload is required before setting SWP

Tim Gardner tim.gardner at canonical.com
Fri Apr 9 12:32:49 UTC 2021



On 4/5/21 10:16 AM, Thadeu Lima de Souza Cascardo wrote:
> On Mon, Apr 05, 2021 at 07:31:49AM -0600, Tim Gardner wrote:
>> From: Moshe Shemesh <moshe at nvidia.com>
>>
>> BugLink: https://bugs.launchpad.net/bugs/1921769
>>
>> Check that tunnel offload is required before setting Software Parser
>> offsets to get Geneve HW offload. In case of Geneve packet we check HW
>> offload support of SWP in mlx5e_tunnel_features_check() and set features
>> accordingly, this should be reflected in skb offload requested by the
>> kernel and we should add the Software Parser offsets only if requested.
>> Otherwise, in case HW doesn't support SWP for Geneve, data path will
>> mistakenly try to offload Geneve SKBs with skb->encapsulation set,
>> regardless of whether offload was requested or not on this specific SKB.
>>
>> Fixes: e3cfc7e6b7bd ("net/mlx5e: TX, Add geneve tunnel stateless offload support")
>> Signed-off-by: Moshe Shemesh <moshe at nvidia.com>
>> Reviewed-by: Tariq Toukan <tariqt at nvidia.com>
>> Signed-off-by: Saeed Mahameed <saeedm at nvidia.com>
>> (backported from commit e1c3940c6003d820c787473c65711b49c2d1bc42)
>> [rtg - the affected code did not get moved to
>>   drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h until
>> 8e4b53f60f7d33cf6c60f790cf506220b2bcbb0f ("net/mlx5e: Refactor xmit functions") ]
>> Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
> 
> This also affects groovy (5.8). Hirsute (5.11) has the fix, though.
> 
Patch for Groovy is on the way.

rtg
-----------
Tim Gardner
Canonical, Inc



More information about the kernel-team mailing list