Thread (7 messages) flat view 7 messages, 2 authors, 2020-09-05

RE: [Intel-wired-lan] [PATCH net-next v2 3/3] i40e, xsk: move buffer allocation out of the Rx processing loop

From: Brown, Aaron F <hidden>
Date: 2020-09-05 03:05:07
Also in: bpf, intel-wired-lan

From: Intel-wired-lan <redacted> On Behalf Of
Björn Töpel
Sent: Tuesday, August 25, 2020 4:36 AM
To: intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org; bpf@vger.kernel.org; Topel, Bjorn
[off-list ref]; Karlsson, Magnus [off-list ref];
kuba@kernel.org
Subject: [Intel-wired-lan] [PATCH net-next v2 3/3] i40e, xsk: move buffer
allocation out of the Rx processing loop

From: Björn Töpel <redacted>

Instead of checking in each iteration of the Rx packet processing
loop, move the allocation out of the loop and do it once for each napi
activation.

For AF_XDP the rx_drop benchmark was improved by 6%.

Signed-off-by: Björn Töpel <redacted>
---
 drivers/net/ethernet/intel/i40e/i40e_xsk.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
Tested-by: Aaron Brown <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help