mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH iwl-next v2 0/6] idpf: XDP chapter II: convert Tx completion to libeth
@ 2024-09-04 15:47 Alexander Lobakin
  2024-09-04 15:47 ` [PATCH iwl-next v2 1/6] libeth: add Tx buffer completion helpers Alexander Lobakin
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alexander Lobakin @ 2024-09-04 15:47 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: Alexander Lobakin, Michal Kubiak, Joshua Hay, Tony Nguyen,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Przemek Kitszel, nex.sw.ncis.osdt.itp.upstreaming, netdev,
	linux-kernel

XDP for idpf is currently 5 chapters:
* convert Rx to libeth;
* convert Tx completion to libeth (this);
* generic XDP and XSk code changes;
* actual XDP for idpf via libeth_xdp;
* XSk for idpf (^).

Part II does the following:
* adds generic libeth Tx completion routines;
* converts idpf to use generic libeth Tx comp routines;
* fixes Tx queue timeouts and robustifies Tx completion in general;
* fixes Tx event/descriptor flushes (writebacks).

Most idpf patches again remove more lines than adds.
Generic Tx completion helpers and structs are needed as libeth_xdp
(Ch. III) makes use of them. WB_ON_ITR is needed since XDPSQs don't
want to work without it at all. Tx queue timeouts fixes are needed
since without them, it's way easier to catch a Tx timeout event when
WB_ON_ITR is enabled.

Alexander Lobakin (3):
  libeth: add Tx buffer completion helpers
  idpf: convert to libeth Tx buffer completion
  netdevice: add netdev_tx_reset_subqueue() shorthand

Joshua Hay (2):
  idpf: refactor Tx completion routines
  idpf: enable WB_ON_ITR

Michal Kubiak (1):
  idpf: fix netdev Tx queue stop/wake

 include/net/libeth/types.h                    |  25 ++
 drivers/net/ethernet/intel/idpf/idpf_txrx.h   |  92 ++--
 include/linux/netdevice.h                     |  13 +-
 include/net/libeth/tx.h                       | 129 ++++++
 drivers/net/ethernet/intel/idpf/idpf_dev.c    |   2 +
 .../ethernet/intel/idpf/idpf_singleq_txrx.c   | 110 +++--
 drivers/net/ethernet/intel/idpf/idpf_txrx.c   | 394 ++++++++----------
 drivers/net/ethernet/intel/idpf/idpf_vf_dev.c |   2 +
 8 files changed, 441 insertions(+), 326 deletions(-)
 create mode 100644 include/net/libeth/types.h
 create mode 100644 include/net/libeth/tx.h

---
From v1[0]:
* drop the stats implementation. It's not generic, uses old Ethtool
  interfaces and is written using macro templates which made it barely
  readable (Kuba).
  I'll be rewriting it separately.
* replace `/* <multi-line comment>` with `/*\n * <multi-line comment>`
  since the special rule for netdev was removed.

[0] https://lore.kernel.org/netdev/20240819223442.48013-1-anthony.l.nguyen@intel.com
-- 
2.46.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-04 15:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04 15:47 [PATCH iwl-next v2 0/6] idpf: XDP chapter II: convert Tx completion to libeth Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 1/6] libeth: add Tx buffer completion helpers Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 2/6] idpf: convert to libeth Tx buffer completion Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 3/6] netdevice: add netdev_tx_reset_subqueue() shorthand Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 4/6] idpf: refactor Tx completion routines Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 5/6] idpf: fix netdev Tx queue stop/wake Alexander Lobakin
2024-09-04 15:47 ` [PATCH iwl-next v2 6/6] idpf: enable WB_ON_ITR Alexander Lobakin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®