diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-28 23:23:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-29 12:56:41 +0200 |
commit | 5f012b40ef639343a976553bf3cc26dd0474756e (patch) | |
tree | 3d185906faa42b0214a7fa9ef4b14bf7aecb88bd /drivers/net/xen-netback/interface.c | |
parent | net: dsa: mv88e6xxx: Single chip mode detection for MV88E6*41 (diff) | |
download | linux-5f012b40ef639343a976553bf3cc26dd0474756e.tar.xz linux-5f012b40ef639343a976553bf3cc26dd0474756e.zip |
eth: remove copies of the NAPI_POLL_WEIGHT define
Defining local versions of NAPI_POLL_WEIGHT with the same
values in the drivers just makes refactoring harder.
Drop the special defines in a bunch of drivers where the
removal is relatively simple so grouping into one patch
does not impact reviewability.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index fe8e21ad8ed9..8e035374a370 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -42,7 +42,6 @@ #include <xen/balloon.h> #define XENVIF_QUEUE_LENGTH 32 -#define XENVIF_NAPI_WEIGHT 64 /* Number of bytes allowed on the internal guest Rx queue. */ #define XENVIF_RX_QUEUE_BYTES (XEN_NETIF_RX_RING_SIZE/2 * PAGE_SIZE) @@ -739,7 +738,7 @@ int xenvif_connect_data(struct xenvif_queue *queue, atomic_set(&queue->inflight_packets, 0); netif_napi_add(queue->vif->dev, &queue->napi, xenvif_poll, - XENVIF_NAPI_WEIGHT); + NAPI_POLL_WEIGHT); queue->stalled = true; |