]> 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)
commit606ef6f092509a728e13f03e430b225f69800f03
tree9eb8167532ae2aca433d11203bd47f239ffc7d39
parent84fb44d9ccf80212a45e004402e8bd8c78830952
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