]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: simplify Rx buffer recycle
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 27 Aug 2019 02:25:20 +0000 (02:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 23:08:26 +0000 (01:08 +0200)
commit30c99e3ef111721cf5aaa6758be8865a7f6131c8
tree35703c22dcf68e1cf967191e79fb31d0d62222db
parent3e852984765b564b2c45bd90a08baf7b50ef410d
i40e: simplify Rx buffer recycle

Currently, the dma, addr and handle are modified when we reuse Rx buffers
in zero-copy mode. However, this is not required as the inputs to the
function are copies, not the original values themselves. As we use the
copies within the function, we can use the original 'old_bi' values
directly without having to mask and add the headroom.

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/intel/i40e/i40e_xsk.c