]> git.baikalelectronics.ru Git - kernel.git/commit
net: xsk: add a simple buffer reuse queue
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 7 Sep 2018 08:18:46 +0000 (10:18 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 25 Sep 2018 20:13:15 +0000 (13:13 -0700)
commit601e7f9e36739578538f250c5f4e7d188728ce08
tree28d868b5c3ed674e3bc2e18cd179657d4301bd9d
parent34aae4edf3034befeec6197d35b1424f7a4f177e
net: xsk: add a simple buffer reuse queue

XSK UMEM is strongly single producer single consumer so reuse of
frames is challenging.  Add a simple "stash" of FILL packets to
reuse for drivers to optionally make use of.  This is useful
when driver has to free (ndo_stop) or resize a ring with an active
AF_XDP ZC socket.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/net/xdp_sock.h
net/xdp/xdp_umem.c
net/xdp/xsk_queue.c
net/xdp/xsk_queue.h