All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Xing <kerneljasonxing@gmail.com>
To: willemb@google.com, magnus.karlsson@intel.com,
	maciej.fijalkowski@intel.com, sdf@fomichev.me, bjorn@kernel.org,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org
Cc: netdev@vger.kernel.org, bpf@vger.kernel.org,
	Jason Xing <kerneljasonxing@gmail.com>
Subject: [PATCH net v3 0/2] xsk: handle two header issues
Date: Sun, 29 Nov 2026 19:10:54 +0800	[thread overview]
Message-ID: <20261129111056.11124-1-kerneljasonxing@gmail.com> (raw)

Cover more potential mac_headers cases in __dev_direct_xmit, including
xsk.

Initialize the metadata of headers in xsk.

---
V3
Link: https://lore.kernel.org/all/20261127105347.72997-1-kerneljasonxing@gmail.com/
1. add Bjorn's R-b tag
2. address Bjorn's and Sashiko's issues - return 0 instead of falling
back to software csum which could lead to bad exceptions like skb drop.

V2
Link: https://lore.kernel.org/all/20261124083520.45547-1-kerneljasonxing@gmail.com/
1. address issues reported by sashiko
2. introduce 0001 patch to prevent the changes from 0002 causing ICE
unintended buggy behavior because of using mac_header in ICE.

Jason Xing (2):
  net: reset the mac header in __dev_direct_xmit()
  xsk: fill in header offsets for TX checksum offload

 net/core/dev.c |  2 ++
 net/xdp/xsk.c  | 51 ++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 49 insertions(+), 4 deletions(-)

-- 
2.43.7


             reply	other threads:[~2026-11-29 11:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 11:10 Jason Xing [this message]
2026-11-29 11:10 ` [PATCH net v3 1/2] net: reset the mac header in __dev_direct_xmit() Jason Xing
2026-11-29 11:10 ` [PATCH net v3 2/2] xsk: fill in header offsets for TX checksum offload Jason Xing
2026-11-30 11:12   ` netdev-bot+sashiko
2026-12-01  7:36     ` Jason Xing
2026-11-30 19:53   ` Björn Töpel
2026-12-01  2:56     ` Jason Xing
2026-12-01  7:23       ` Björn Töpel

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=20261129111056.11124-1-kerneljasonxing@gmail.com \
    --to=kerneljasonxing@gmail.com \
    --cc=bjorn@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=magnus.karlsson@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=willemb@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.