[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <ed81f12a1e8804bb9fb207a2569d3086320869a7.1622222367.git.lorenzo@kernel.org>
Date: Fri, 28 May 2021 19:43:44 +0200
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: bpf@...r.kernel.org
Cc: netdev@...r.kernel.org, davem@...emloft.net, kuba@...nel.org,
daniel@...earbox.net, ast@...nel.org, echaudro@...hat.com,
dsahern@...il.com, magnus.karlsson@...el.com, toke@...hat.com,
brouer@...hat.com, bjorn@...nel.org, maciej.fijalkowski@...el.com,
john.fastabend@...il.com
Subject: [RFC bpf-next 4/4] net: xdp: update csum building the skb
update skb->ip_summed and skb->csum filed building the skb in
__xdp_build_skb_from_frame routine
Co-developed-by: David Ahern <dsahern@...nel.org>
Signed-off-by: David Ahern <dsahern@...nel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org>
---
net/core/xdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/xdp.c b/net/core/xdp.c
index 725d20f1b100..aadcbbc438c3 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -555,10 +555,10 @@ struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
skb->protocol = eth_type_trans(skb, dev);
/* Optional SKB info, currently missing:
- * - HW checksum info (skb->ip_summed)
* - HW RX hash (skb_set_hash)
* - RX ring dev queue index (skb_record_rx_queue)
*/
+ xdp_frame_get_csum(xdpf, skb);
/* Until page_pool get SKB return path, release DMA here */
xdp_release_frame(xdpf);
--
2.31.1
Powered by blists - more mailing lists