2021-07-21 23:58:44

by Lino Sanfilippo

[permalink] [raw]
Subject: [PATCH v2 0/2] Fixes for KSZ DSA switch

These patches fix issues I encountered while using a KSZ9897 as a DSA
switch with a broadcom GENET network device as the DSA master device.

PATCH 1 fixes an invalid access to an SKB in case it is scattered.
PATCH 2 fixes incorrect hardware checksum calculation caused by the DSA
tag.

Changes in v2:
- instead of linearizing the SKBs only for KSZ switches ensure linearized
SKBs for all tail taggers by clearing the feature flags NETIF_F_HW_SG and
NETIF_F_FRAGLIST (suggested by Vladimir Oltean)

The patches have been tested with a KSZ9897 and apply against net-next.

Lino Sanfilippo (2):
net: dsa: ensure linearized SKBs in case of tail taggers
net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum

net/dsa/slave.c | 14 +++++++++-----
net/dsa/tag_ksz.c | 9 +++++++++
2 files changed, 18 insertions(+), 5 deletions(-)


base-commit: 54cb43199e14c1181ddcd4a3782f1f7eb56bdab8
--
2.32.0


2021-07-22 06:21:45

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Fixes for KSZ DSA switch

Hello:

This series was applied to netdev/net.git (refs/heads/master):

On Wed, 21 Jul 2021 23:56:40 +0200 you wrote:
> These patches fix issues I encountered while using a KSZ9897 as a DSA
> switch with a broadcom GENET network device as the DSA master device.
>
> PATCH 1 fixes an invalid access to an SKB in case it is scattered.
> PATCH 2 fixes incorrect hardware checksum calculation caused by the DSA
> tag.
>
> [...]

Here is the summary with links:
- [v2,1/2] net: dsa: ensure linearized SKBs in case of tail taggers
https://git.kernel.org/netdev/net/c/21cf377a9c40
- [v2,2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum
https://git.kernel.org/netdev/net/c/37120f23ac89

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html