Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hamza Mahfooz" <hamzamahfooz@linux.microsoft.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net-next] net: mana: add UDP segmentation offload support
Date: Mon, 30 Nov 2026 23:21:28 +0000	[thread overview]
Message-ID: <sashiko-outbox-242217@kernel.org> (raw)
In-Reply-To: <20261130231409.2567518-1-hamzamahfooz@linux.microsoft.com>

> The hardware segments both TCP and UDP. In LSO mode it takes the L4
> protocol from the parsed header, rewrites the IP total/payload length,
> the IPv4 ID and the UDP length of each segment, and computes the L4
> checksum from scratch. However, it reports a non-fatal error if neither
> the TCP nor the UDP checksum offload bit is set in the TX OOB.
> 
> Advertise NETIF_F_GSO_UDP_L4 and, for SKB_GSO_UDP_L4 skbs, set
> comp_udp_csum instead of comp_tcp_csum and seed the UDP checksum
> rather than the TCP one. Everything else, including the header size
> calculation in mana_get_gso_hs(), is shared with TSO.
> 
> Advertise this change to the PF with the new driver capability flag
> GDMA_DRV_CAP_FLAG_1_UDP_SEGMENTATION_OFFLOAD.
> 
> Tested between two Azure Standard_E372is_v7 VMs on different hosts,
> [ ... ]
> segmented in software until netvsc supports USO as well. Where the
> MANA device is the VM's network interface, as in the tests above,
> this patch is enough.
> 
> Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261130231409.2567518-1-hamzamahfooz@linux.microsoft.com?part=1

      reply	other threads:[~2026-11-30 23:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 23:14 [PATCH net-next] net: mana: add UDP segmentation offload support Hamza Mahfooz
2026-11-30 23:21 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-242217@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=hamzamahfooz@linux.microsoft.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox