]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit6d7aad1da2791cc0863a5b8068dcdb8c7536519d
tree9eb8167532ae2aca433d11203bd47f239ffc7d39
parent123cecd427b6c1af5bdc3a90131ae85581854319
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