[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230401051221.3160913-1-kuba@kernel.org>
Date: Fri, 31 Mar 2023 22:12:18 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, edumazet@...gle.com, pabeni@...hat.com,
Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net-next 0/3] net: provide macros for commonly copied lockless queue stop/wake code
Drivers often struggle to implement lockless xmit and cleanup.
Add macros wrapping commonly copied implementation.
Convert two example drivers.
Jakub Kicinski (3):
net: provide macros for commonly copied lockless queue stop/wake code
ixgbe: use new queue try_stop/try_wake macros
bnxt: use new queue try_stop/try_wake macros
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 41 +----
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 37 +---
include/net/netdev_queues.h | 167 ++++++++++++++++++
3 files changed, 184 insertions(+), 61 deletions(-)
create mode 100644 include/net/netdev_queues.h
--
2.39.2
Powered by blists - more mailing lists