]> git.baikalelectronics.ru Git - kernel.git/commit
net: extract napi poll functionality to __napi_poll()
authorFelix Fietkau <nbd@nbd.name>
Mon, 8 Feb 2021 19:34:08 +0000 (11:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2021 23:27:28 +0000 (15:27 -0800)
commit90e45f68c9f4bde00224bdb6de7ca2f76faff2a4
tree9d93e26bffa1e6c2259c5df1e2d799739922c29c
parentb2b0261f04e794810e67e7dff2639960b8a11336
net: extract napi poll functionality to __napi_poll()

This commit introduces a new function __napi_poll() which does the main
logic of the existing napi_poll() function, and will be called by other
functions in later commits.
This idea and implementation is done by Felix Fietkau <nbd@nbd.name> and
is proposed as part of the patch to move napi work to work_queue
context.
This commit by itself is a code restructure.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Wei Wang <weiwan@google.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c