All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kurt Kanzenbach <kurt@linutronix.de>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Richard Cochran <richardcochran@gmail.com>,
	Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>,
	Benjamin Steinke <benjamin.steinke@woks-audio.com>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
	bpf@vger.kernel.org,
	Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Subject: Re: [PATCH iwl-next v9 6/6] igb: Add AF_XDP zero-copy Tx support
Date: Fri, 18 Oct 2024 12:45:34 +0200	[thread overview]
Message-ID: <87frot8zap.fsf@kurt.kurt.home> (raw)
In-Reply-To: <ZxIzRJlXA91Bapwt@boxer>

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

On Fri Oct 18 2024, Maciej Fijalkowski wrote:
> On Fri, Oct 18, 2024 at 10:40:02AM +0200, Kurt Kanzenbach wrote:
>> From: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
>> 
>> Add support for AF_XDP zero-copy transmit path.
>> 
>> A new TX buffer type IGB_TYPE_XSK is introduced to indicate that the Tx
>> frame was allocated from the xsk buff pool, so igb_clean_tx_ring() and
>> igb_clean_tx_irq() can clean the buffers correctly based on type.
>> 
>> igb_xmit_zc() performs the actual packet transmit when AF_XDP zero-copy is
>> enabled. We share the TX ring between slow path, XDP and AF_XDP
>> zero-copy, so we use the netdev queue lock to ensure mutual exclusion.
>> 
>> Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
>> [Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted,
>>        Use READ_ONCE() for xsk_pool and check Tx disabled and carrier in
>>        igb_xmit_zc(), Add FIXME for RS bit]
>> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
>> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
>
> I didn't give you my tag on this patch in previous revision, but from what
> I can see now it can stay here:)

At some point you did [1]. And I didn't remove it, because it felt like
only small changes like adding the FIXME and re-using the xsk pool
pointer were made.

>
> Finally, thanks!
>

Yay :). Thanks for your review and time spent.

[1] - https://lore.kernel.org/intel-wired-lan/ZsNzLvH38p%2FcWwI0@boxer/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Kurt Kanzenbach <kurt@linutronix.de>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Richard Cochran <richardcochran@gmail.com>,
	Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>,
	Benjamin Steinke <benjamin.steinke@woks-audio.com>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
	bpf@vger.kernel.org,
	Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v9 6/6] igb: Add AF_XDP zero-copy Tx support
Date: Fri, 18 Oct 2024 12:45:34 +0200	[thread overview]
Message-ID: <87frot8zap.fsf@kurt.kurt.home> (raw)
In-Reply-To: <ZxIzRJlXA91Bapwt@boxer>

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

On Fri Oct 18 2024, Maciej Fijalkowski wrote:
> On Fri, Oct 18, 2024 at 10:40:02AM +0200, Kurt Kanzenbach wrote:
>> From: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
>> 
>> Add support for AF_XDP zero-copy transmit path.
>> 
>> A new TX buffer type IGB_TYPE_XSK is introduced to indicate that the Tx
>> frame was allocated from the xsk buff pool, so igb_clean_tx_ring() and
>> igb_clean_tx_irq() can clean the buffers correctly based on type.
>> 
>> igb_xmit_zc() performs the actual packet transmit when AF_XDP zero-copy is
>> enabled. We share the TX ring between slow path, XDP and AF_XDP
>> zero-copy, so we use the netdev queue lock to ensure mutual exclusion.
>> 
>> Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
>> [Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted,
>>        Use READ_ONCE() for xsk_pool and check Tx disabled and carrier in
>>        igb_xmit_zc(), Add FIXME for RS bit]
>> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
>> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
>
> I didn't give you my tag on this patch in previous revision, but from what
> I can see now it can stay here:)

At some point you did [1]. And I didn't remove it, because it felt like
only small changes like adding the FIXME and re-using the xsk pool
pointer were made.

>
> Finally, thanks!
>

Yay :). Thanks for your review and time spent.

[1] - https://lore.kernel.org/intel-wired-lan/ZsNzLvH38p%2FcWwI0@boxer/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2024-10-18 10:45 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18  8:39 [PATCH iwl-next v9 0/6] igb: Add support for AF_XDP zero-copy Kurt Kanzenbach
2024-10-18  8:39 ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-18  8:39 ` [PATCH iwl-next v9 1/6] igb: Remove static qualifiers Kurt Kanzenbach
2024-10-18  8:39   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-26 16:57   ` Kuruvinakunnel, George
2024-10-26 16:57     ` Kuruvinakunnel, George
2024-10-18  8:39 ` [PATCH iwl-next v9 2/6] igb: Introduce igb_xdp_is_enabled() Kurt Kanzenbach
2024-10-18  8:39   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-26 16:55   ` Kuruvinakunnel, George
2024-10-26 16:55     ` Kuruvinakunnel, George
2024-10-18  8:39 ` [PATCH iwl-next v9 3/6] igb: Introduce XSK data structures and helpers Kurt Kanzenbach
2024-10-18  8:39   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-26 16:54   ` Kuruvinakunnel, George
2024-10-26 16:54     ` Kuruvinakunnel, George
2024-10-18  8:40 ` [PATCH iwl-next v9 4/6] igb: Add XDP finalize and stats update functions Kurt Kanzenbach
2024-10-18  8:40   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-26 16:53   ` Kuruvinakunnel, George
2024-10-26 16:53     ` Kuruvinakunnel, George
2024-10-18  8:40 ` [PATCH iwl-next v9 5/6] igb: Add AF_XDP zero-copy Rx support Kurt Kanzenbach
2024-10-18  8:40   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-26 16:51   ` Kuruvinakunnel, George
2024-10-26 16:51     ` Kuruvinakunnel, George
2024-10-18  8:40 ` [PATCH iwl-next v9 6/6] igb: Add AF_XDP zero-copy Tx support Kurt Kanzenbach
2024-10-18  8:40   ` [Intel-wired-lan] " Kurt Kanzenbach
2024-10-18 10:07   ` Maciej Fijalkowski
2024-10-18 10:07     ` [Intel-wired-lan] " Maciej Fijalkowski
2024-10-18 10:45     ` Kurt Kanzenbach [this message]
2024-10-18 10:45       ` Kurt Kanzenbach
2024-10-26 16:45   ` Kuruvinakunnel, George
2024-10-26 16:45     ` Kuruvinakunnel, George
2024-10-18 10:10 ` [PATCH iwl-next v9 0/6] igb: Add support for AF_XDP zero-copy Maciej Fijalkowski
2024-10-18 10:10   ` [Intel-wired-lan] " Maciej Fijalkowski

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=87frot8zap.fsf@kurt.kurt.home \
    --to=kurt@linutronix.de \
    --cc=anthony.l.nguyen@intel.com \
    --cc=ast@kernel.org \
    --cc=benjamin.steinke@woks-audio.com \
    --cc=bigeasy@linutronix.de \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hawk@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=richardcochran@gmail.com \
    --cc=sriram.yagnaraman@ericsson.com \
    --cc=sriram.yagnaraman@est.tech \
    /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.