OSDN Git Service

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)
commit898f8015ffe74118e7b461827451f2cc6e51035b
tree9d93e26bffa1e6c2259c5df1e2d799739922c29c
parent4feffeadbcb2e5b11cbbf191a33c245b74a5837b
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