Skip to content

Extend GbEth checksum offload support to VLAN/IPv6 packets

Paul Barker linux-renesas-soc lkml netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11net: ravb: Factor out checksum offload enable bitsdrivers/net/ethernet/renesas/ravb.h drivers/net/ethernet/renesas/ravb_main.c+8 -51 reply
2/11net: ravb: Disable IP header RX checksum offloadingdrivers/net/ethernet/renesas/ravb.h drivers/net/ethernet/renesas/ravb_main.c+10 -81 reply
3/11net: ravb: Drop IP protocol check from RX csum verificationdrivers/net/ethernet/renesas/ravb_main.c+1 -21 reply
4/11net: ravb: Combine if conditions in RX csum validationdrivers/net/ethernet/renesas/ravb_main.c+2 -51 reply
5/11net: ravb: Simplify types in RX csum validationdrivers/net/ethernet/renesas/ravb_main.c+14 -164 replies
6/11net: ravb: Disable IP header TX checksum offloadingdrivers/net/ethernet/renesas/ravb.h+1 -11 reply
7/11net: ravb: Simplify UDP TX checksum offloaddrivers/net/ethernet/renesas/ravb_main.c+2 -101 reply
8/11net: ravb: Support ICMP TX checksum offload for GbEthdrivers/net/ethernet/renesas/ravb.h drivers/net/ethernet/renesas/ravb_main.c+2 -11 reply
9/11net: ravb: Enable IPv6 RX checksum offloading for GbEthdrivers/net/ethernet/renesas/ravb.h+2 -11 reply
10/11net: ravb: Enable IPv6 TX checksum offload for GbEthdrivers/net/ethernet/renesas/ravb.h drivers/net/ethernet/renesas/ravb_main.c+20 -141 reply
11/11net: ravb: Add VLAN checksum supportdrivers/net/ethernet/renesas/ravb.h drivers/net/ethernet/renesas/ravb_main.c+25 -35 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchSergey Shtylyov
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [net-next PATCH 00/11] Extend GbEth checksum offload support to VLAN/IPv6 packets

From: Paul Barker <[email protected]>

The GbEth IP found in Renesas RZ/G2L, RZ/G3S and related SoCs supports hardware checksum offload for packets in the following cases:

- there are zero or one VLAN headers with TPID=0x8100
- the network protocol is IPv4 or IPv6
- the transport protocol is TCP, UDP or ICMP
- the packet is not fragmented

To complete the support for all these cases in the ravb driver, we need to add handling for ICMP packets, VLAN-tagged packets and IPv6 packets in both the TX and RX code paths.

These patches also do some refactoring/tidy-up, drop unnecessary checks from performance sensitive code paths and disable unnecessary IP header checksum offloading.

Paul Barker (11):
net: ravb: Factor out checksum offload enable bits
net: ravb: Disable IP header RX checksum offloading
net: ravb: Drop IP protocol check from RX csum verification
net: ravb: Combine if conditions in RX csum validation
net: ravb: Simplify types in RX csum validation
net: ravb: Disable IP header TX checksum offloading
net: ravb: Simplify UDP TX checksum offload
net: ravb: Support ICMP TX checksum offload for GbEth
net: ravb: Enable IPv6 RX checksum offloading for GbEth
net: ravb: Enable IPv6 TX checksum offload for GbEth
net: ravb: Add VLAN checksum support

 drivers/net/ethernet/renesas/ravb.h      |   7 ++
 drivers/net/ethernet/renesas/ravb_main.c | 108 +++++++++++++----------
 2 files changed, 68 insertions(+), 47 deletions(-)
Signature · 1 line
2.43.0