From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796080888; b=B1tRmmIphD643MRCOromAqeVr1qq6EofAsV4+S7Vv1fFm9BtSOkANSneOZqBIf2O87+Y wG2yb8W+kQx2OvP+OS5OKswnvTLoWIt2xuyXl/Co2mbC22I5or0vlJF1VPWn5IhmiU7sw HZ4dbyqrNVK5lXqdxQsCvRcifrbih/VOkYh2hpnlDOaxj9DynNg/jb+bCdhj9I5BTeFxi Ib30GBVfhMwTsZMsDw0RvbcmAE+lZB4hoidrFPYOnG3tX9TrtS6mpoTt3zLWMiJwfPExa sSDUp8aoc7cGWEqmj44OzudJvyUNgQWmDHvh5VLo1Wj1Umhryoc4eHE94yA1fpIBa1g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796080888; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=lGhvmBS9T1gpf4KESSR7VnkoHRzKcym/BfNX07Q+hT4=; b=RNpe9WghHAIDSN2VfCuBTOUq/8o0QLSc/CDbC5DQjIO5wfUeLHSBHYKv8gQZWpf4wO6K jf2DGpGM+xdEitXOQMSZRI894gIfMlNXDSTlnPjKmzz9E7sn5JVvjLW2dZzikgYki3ylF wKs+lUxAphTzGK/p7KctOE8Z1IMitnrg++iJy9iNupSaaxgEAZ1RkPHTWZpWF6pWizKlR GlWLGDla7U7stFAKes9s6t4BHtpgD9fDu/7ZAIjjVAAGuO+hxUzZb9Sz99Vn748JmfxYN 6q0s7HbIOFFRuIbHxTKsw2HMe/9f57rFpJvLODMDk97ZSEtpejWWHVNBE29b5cAxfeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UXQsGGKh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D260C606A32D for ; Mon, 30 Nov 2026 23:21:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UXQsGGKh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 722AC1F00897; Mon, 30 Nov 2026 23:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796080888; bh=lGhvmBS9T1gpf4KESSR7VnkoHRzKcym/BfNX07Q+hT4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UXQsGGKhPEzJuwUtCj/eSJKbSN1T0SaaufTjQTwwWdSV5uFJODhEU0/vf6knCICA/ F7BuaDb8OnGElIv2A/+8J6gVxHhF8dLqKPh7pGpatNUf5z4eQmgPOwMAH2DpChfpXo ScfGzzpleZELWDgi1yA3hMdv2HSNKLdoZDdKOx6RfGnf/ilM4yFW2ozIC3NwI47ZNu /G61xKRUNyc5q0ILdaXXSJyi1qLtET7NEj0SU+npAvSsDuk73i/KwKcqS6bsImK1rq mTQKRlR1DwI44Ffg9FEGrZyttKKa/iaOshL7N1ZWJ6FwAknY5fLqmpPP2ZRZOcRbPl 8s6HupM3w7P8Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next] net: mana: add UDP segmentation offload support Reply-To: sashiko-reviews@lists.linux.dev To: "Hamza Mahfooz" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261130231409.2567518-1-hamzamahfooz@linux.microsoft.com> References: <20261130231409.2567518-1-hamzamahfooz@linux.microsoft.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 23:21:28 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > 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. >=20 > 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. >=20 > Advertise this change to the PF with the new driver capability flag > GDMA_DRV_CAP_FLAG_1_UDP_SEGMENTATION_OFFLOAD. >=20 > 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. >=20 > Signed-off-by: Hamza Mahfooz Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130231409.2567= 518-1-hamzamahfooz@linux.microsoft.com?part=3D1