]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: refactor Rx path for re-use
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 28 Aug 2018 12:44:30 +0000 (14:44 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Aug 2018 19:25:53 +0000 (12:25 -0700)
commit3247c238748c975dee45a767a420bb79ddc25d9a
tree9eb8167532ae2aca433d11203bd47f239ffc7d39
parent39060133c7cee5c7868992dc485b2832fa6c42e0
i40e: refactor Rx path for re-use

In this commit, the Rx path is refactored some, as a step torwards the
introduction AF_XDP Rx zero-copy.

The page re-use counter is moved into the i40e_reuse_rx_page, instead
of bumping the counter in many places. The Rx buffer page clearing is
moved for better readability. Lastely, functions to update statistics
and bump the XDP Tx ring are introduced.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_txrx.c