From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FE4A3624C2; Fri, 13 Feb 2026 15:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770996126; cv=none; b=gjXXn1b/VEvux37RJFxuPaBr/pbovqFCdviwtUKGcld6Zia4tehncEF7+VpcLv6PTfR4LORzWYwVOdhA4tG1FCbPeIU33ziarHotVPXxrQiwg1eWq3DcYCPLnMaZjOWJDyHX8zKBPtS8yF1et4nn8Z8S27hEKBznjYyPd2yWQZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770996126; c=relaxed/simple; bh=uiXKGrta5YSlOI9oj98H0JbtZs40BXq+md8wHRRZ+YA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cXFMiQHODd+BEacJwGYMjaFkw9bJhlzWIozAhCqdVOij1GGWfVKfO9RahQ8aWJfuJbd5cBZBE6WO6MM6JWwy7WQPLpe/CMRxqBI6v0nKJNoTSbZoKYOxysnhj8GtaCliKSYsgWYuLu78ePcoUo7sFdxvgmwib+Jv7TLlNJWWG2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mGw9ILGu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mGw9ILGu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71D33C2BC86; Fri, 13 Feb 2026 15:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770996126; bh=uiXKGrta5YSlOI9oj98H0JbtZs40BXq+md8wHRRZ+YA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mGw9ILGuBrof3W4ID1AXaRcRnWS+kvUe3FQSoaOotADVb3P1+lkFpDJx7SZ/rsNLP lbQwMFYHr2exFPdbAgOzH5VWP0xmXnQzWKbVS+WVH9riUpsC2RnaK4VyhlWYiHeJRE XeD7rthBaCh+xiTm1VJ6cGvPMlcnwWKjwkwUsnXUmf0gazK3hOApJrYbEkDJyzcNqX 5gUxrcwaI0X9ilHL6V/SODI9T/awsKhEh2niVe4F3mCPpT50kuesxEol/Z5Ck0wf5x a+kNvDip0saLJHQFWVlr/jY81zF6sc2vP+ZW1+052sC008Vyyf1H8FqdiRmfI4UbIP ZnZWYmY77zCvQ== Date: Fri, 13 Feb 2026 16:22:03 +0100 From: Lorenzo Bianconi To: "Loktionov, Aleksandr" Cc: Donald Hunter , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Andrew Lunn , "Nguyen, Anthony L" , "Kitszel, Przemyslaw" , "Lobakin, Aleksander" , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan , "Fijalkowski, Maciej" , Jakub Sitnicki , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-kselftest@vger.kernel.org" Subject: Re: [Intel-wired-lan] [PATCH bpf-next 2/5] net: veth: Add xmo_rx_checksum callback to veth driver Message-ID: References: <20260210-bpf-xdp-meta-rxcksum-v1-0-e5d55caa0541@kernel.org> <20260210-bpf-xdp-meta-rxcksum-v1-2-e5d55caa0541@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HFmkBUtLTk0X/kCd" Content-Disposition: inline In-Reply-To: --HFmkBUtLTk0X/kCd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >=20 >=20 > > -----Original Message----- > > From: Intel-wired-lan On Behalf > > Of Lorenzo Bianconi > > Sent: Tuesday, February 10, 2026 6:22 PM > > To: Donald Hunter ; Jakub Kicinski > > ; David S. Miller ; Eric Dumazet > > ; Paolo Abeni ; Simon Horman > > ; Alexei Starovoitov ; Daniel > > Borkmann ; Jesper Dangaard Brouer > > ; John Fastabend ; > > Stanislav Fomichev ; Andrew Lunn > > ; Nguyen, Anthony L > > ; Kitszel, Przemyslaw > > ; Lobakin, Aleksander > > ; Andrii Nakryiko ; > > Martin KaFai Lau ; Eduard Zingerman > > ; Song Liu ; Yonghong Song > > ; KP Singh ; Hao Luo > > ; Jiri Olsa ; Shuah Khan > > ; Fijalkowski, Maciej > > Cc: Jakub Sitnicki ; netdev@vger.kernel.org; > > bpf@vger.kernel.org; intel-wired-lan@lists.osuosl.org; linux- > > kselftest@vger.kernel.org; Lorenzo Bianconi > > Subject: [Intel-wired-lan] [PATCH bpf-next 2/5] net: veth: Add > > xmo_rx_checksum callback to veth driver > >=20 > > Implement xmo_rx_checksum callback in veth driver to report RX > > checksum result to the eBPF program bounded to the veth device. > >=20 > > Signed-off-by: Lorenzo Bianconi > > --- > > drivers/net/veth.c | 20 ++++++++++++++++++++ > > 1 file changed, 20 insertions(+) > >=20 > > diff --git a/drivers/net/veth.c b/drivers/net/veth.c index > > 14e6f2a2fb7783334d8f6afd54e658cf9a0e6f3d..38b70ad62db7e92cccc6c6c9ed1f > > 5573d8baf48b 100644 > > --- a/drivers/net/veth.c > > +++ b/drivers/net/veth.c > > @@ -1693,6 +1693,25 @@ static int veth_xdp_rx_vlan_tag(const struct > > xdp_md *ctx, __be16 *vlan_proto, > > return err; > > } > >=20 > > +static int veth_xdp_rx_checksum(const struct xdp_md *ctx, > > + enum xdp_checksum *ip_summed, > > + u32 *cksum_meta) > > +{ > > + const struct veth_xdp_buff *_ctx =3D (void *)ctx; > > + const struct sk_buff *skb =3D _ctx->skb; > > + > > + if (!skb) > > + return -ENODATA; > > + > > + /* For locally generated packets ip_summed is set to > > + * CHECKSUM_PARTIAL. > > + */ > > + *ip_summed =3D skb->ip_summed; > > + *cksum_meta =3D 0; > > + > > + return 0; > > +} > > + > > static const struct net_device_ops veth_netdev_ops =3D { > > .ndo_init =3D veth_dev_init, > > .ndo_open =3D veth_open, > > @@ -1718,6 +1737,7 @@ static const struct xdp_metadata_ops > > veth_xdp_metadata_ops =3D { > > .xmo_rx_timestamp =3D veth_xdp_rx_timestamp, > > .xmo_rx_hash =3D veth_xdp_rx_hash, > > .xmo_rx_vlan_tag =3D veth_xdp_rx_vlan_tag, > > + .xmo_rx_checksum =3D veth_xdp_rx_checksum, > > }; > >=20 > > #define VETH_FEATURES (NETIF_F_SG | NETIF_F_FRAGLIST | > > NETIF_F_HW_CSUM | \ > >=20 > > -- > > 2.53.0 >=20 > Reviewed-by: Aleksandr Loktionov @Aleksandr: veth implementation is quite different in v2 so I will remove your Reviewed-by tag. Can you please take a look to the new version when you have some free cycle= s? Thanks in advance. Regards, Lorenzo --HFmkBUtLTk0X/kCd Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaY9BmwAKCRA6cBh0uS2t rM9GAP9pqasZqU5mkbE9HeZKaEA/3fmJnoxbUinX2RuFECIihQD+MfrvsdLGCvNi SmxAUR2eFsKybJxZcgoL96b8QXXhzgQ= =09aw -----END PGP SIGNATURE----- --HFmkBUtLTk0X/kCd--