[PATCH net-next 1/6] um: vector: switch to netif_napi_add_weight()

Jakub Kicinski kuba at kernel.org
Fri May 6 10:07:46 PDT 2022


UM's netdev driver uses a custom napi weight, switch to the new
API for setting custom weight.

Signed-off-by: Jakub Kicinski <kuba at kernel.org>
---
CC: richard at nod.at
CC: anton.ivanov at cambridgegreys.com
CC: johannes at sipsolutions.net
CC: linux-um at lists.infradead.org
---
 arch/um/drivers/vector_kern.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
index 1d6f6a66766c..548265312743 100644
--- a/arch/um/drivers/vector_kern.c
+++ b/arch/um/drivers/vector_kern.c
@@ -1255,7 +1255,8 @@ static int vector_net_open(struct net_device *dev)
 			goto out_close;
 	}
 
-	netif_napi_add(vp->dev, &vp->napi, vector_poll, get_depth(vp->parsed));
+	netif_napi_add_weight(vp->dev, &vp->napi, vector_poll,
+			      get_depth(vp->parsed));
 	napi_enable(&vp->napi);
 
 	/* READ IRQ */
-- 
2.34.1




More information about the linux-um mailing list