[PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB

Koichiro Den posted 4 patches 1 week, 1 day ago
drivers/net/ntb_netdev.c      | 77 +++++++++++++++++++++++++++++++++--
drivers/ntb/ntb_transport.c   | 73 +++++++++++++++++++++------------
include/linux/ntb_transport.h |  6 ++-
3 files changed, 123 insertions(+), 33 deletions(-)
[PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB
Posted by Koichiro Den 1 week, 1 day ago
Hi,

ntb_netdev may be used on embedded systems, where CPU resources are
often limited. L4 checksum calculation can therefore become a bottleneck
even when traffic stays within a trusted PCIe fabric.

This small series makes it possible to carry CHECKSUM_PARTIAL state
across the NTB link using opaque per-payload metadata in ntb_transport.
Existing peers continue to use software checksumming. The feature
remains disabled by default and must be enabled explicitly for trusted
links.

Note: the first two fixes came from Sashiko's review of v1. They touch
the same ntb_transport path as the metadata patch, so keeping them here
avoids a cross-tree dependency. With review from the NTB side, I hope
the whole series can go through net-next.

Best regards,
Koichiro
---
Changes in v2:
  - Reset peer checksum capability on every link event (Sashiko)
  - Add prerequisite fixes for RX ordering and shared field endianness
    (Sashiko)

v1: https://lore.kernel.org/r/20260814032913.3558500-1-den@valinux.co.jp/

Koichiro Den (4):
  NTB: ntb_transport: Order RX descriptor reads after completion
  NTB: ntb_transport: Use little-endian shared fields
  NTB: ntb_transport: Add per-payload client metadata
  net: ntb_netdev: Preserve CHECKSUM_PARTIAL across NTB

 drivers/net/ntb_netdev.c      | 77 +++++++++++++++++++++++++++++++++--
 drivers/ntb/ntb_transport.c   | 73 +++++++++++++++++++++------------
 include/linux/ntb_transport.h |  6 ++-
 3 files changed, 123 insertions(+), 33 deletions(-)

base-commit: e6a5d573d24cd375e09d24f136523cb3cc85c9d3
-- 
2.51.0
Re: [PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB
Posted by Jakub Kicinski 1 week ago
On Mon, 17 Aug 2026 15:49:12 +0900 Koichiro Den wrote:
> Subject: [PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB

## Form letter - net-next-closed

The merge window for v7.3 has started, and therefore net-next is closed
for new drivers, features, code refactoring and optimizations.
We will only consider applying net-next patches which were posted
before the announcement:

https://lore.kernel.org/20260816155953.072d73da@kernel.org

Fixes are obviously welcome at any time. net-next patches may be sent
for review and discussion only with an RFC tag.

Please repost when net-next reopens.

See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
-- 
pw-bot: defer
pv-bot: closed
Re: [PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB
Posted by Koichiro Den 6 days, 12 hours ago
On Mon, Aug 17, 2026 at 08:39:25AM -0700, Jakub Kicinski wrote:
> On Mon, 17 Aug 2026 15:49:12 +0900 Koichiro Den wrote:
> > Subject: [PATCH net-next v2 0/4] net: ntb_netdev: Preserve checksum offload across NTB
> 
> ## Form letter - net-next-closed
> 
> The merge window for v7.3 has started, and therefore net-next is closed
> for new drivers, features, code refactoring and optimizations.
> We will only consider applying net-next patches which were posted
> before the announcement:
> 
> https://lore.kernel.org/20260816155953.072d73da@kernel.org
> 
> Fixes are obviously welcome at any time. net-next patches may be sent
> for review and discussion only with an RFC tag.
> 
> Please repost when net-next reopens.
> 
> See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle

Apologies for the noise. I'll be more careful next time.

Best regards,
Koichiro

> -- 
> pw-bot: defer
> pv-bot: closed
>