aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/protocol.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2022-05-04 16:37:24 +0000
committerJakub Kicinski <[email protected]>2022-05-05 22:54:12 +0000
commit16d083e28f1a4f6deef82be92d6a0f5aa2fe7e08 (patch)
treebc9cfe751b7c156ce43d57052b6835421765d31b /net/mptcp/protocol.c
parentjme: remove an unnecessary indirection (diff)
downloadkernel-16d083e28f1a4f6deef82be92d6a0f5aa2fe7e08.tar.gz
kernel-16d083e28f1a4f6deef82be92d6a0f5aa2fe7e08.zip
net: switch to netif_napi_add_tx()
Switch net callers to the new API not requiring the NAPI_POLL_WEIGHT argument. Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Alex Elder <[email protected]> Acked-by: Mat Martineau <[email protected]> Acked-by: Alexandra Winter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/mptcp/protocol.c')
-rw-r--r--net/mptcp/protocol.c4
1 files changed, 2 insertions, 2 deletions
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);
}