Re: [PATCH net-next 1/2] net: switch to netif_napi_add_tx()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 4 May 2022, Jakub Kicinski wrote:

Switch net callers to the new API not requiring
the NAPI_POLL_WEIGHT argument.

Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
---

...

net/mptcp/protocol.c                               | 4 ++--
19 files changed, 29 insertions(+), 40 deletions(-)


For the MPTCP content:

Acked-by: Mat Martineau <mathew.j.martineau@xxxxxxxxxxxxxxx>

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 52ed2c0ac901..7a9e2545884f 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -3786,8 +3786,8 @@ void __init mptcp_proto_init(void)
	for_each_possible_cpu(cpu) {
		delegated = per_cpu_ptr(&mptcp_delegated_actions, cpu);
		INIT_LIST_HEAD(&delegated->head);
-		netif_tx_napi_add(&mptcp_napi_dev, &delegated->napi, mptcp_napi_poll,
-				  NAPI_POLL_WEIGHT);
+		netif_napi_add_tx(&mptcp_napi_dev, &delegated->napi,
+				  mptcp_napi_poll);
		napi_enable(&delegated->napi);
	}

--
2.34.1



--
Mat Martineau
Intel



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux