]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'remove-NAPI_POLL_WEIGHT-copies'
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2022 10:57:01 +0000 (11:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2022 10:57:01 +0000 (11:57 +0100)
commitbaf129d9db78e6f584b3d4466fa296684b5add63
treed2f8c60d64404d1c420880ad42eadcf1978af93d
parentb4beae01385c8e1ee0951e6972738cf9157d19fb
parent3e94252e3e24d9416905973d76e1f4cb9c1f325e
Merge branch 'remove-NAPI_POLL_WEIGHT-copies'

Merge branch 'remove-NAPI_POLL_WEIGHT-copies'

Jakub Kicinski says:

====================
remove copies of the NAPI_POLL_WEIGHT define

netif_napi_add() takes weight as the last argument. The value of
that parameter is hard to come up with and depends on many factors,
so driver authors are encouraged to use NAPI_POLL_WEIGHT.

We should probably move weight to an "advanced" version of the API
(__netif_napi_add()?) and simplify the life of most driver authors.

In preparation for such API changes this series removes local
defines equivalent to NAPI_POLL_WEIGHT from drivers, so that a simple
coccinelle / spatch script does not get thrown off by them.

v2:
 - drop staging bits (patch 2)
 - fix subject (patch 8)
 - add qeth change (patch 15)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>