Jesper Dangaard Brouer 389ab7f01a xdp: introduce xdp_return_frame_rx_napi
When sending an xdp_frame through xdp_do_redirect call, then error
cases can happen where the xdp_frame needs to be dropped, and
returning an -errno code isn't sufficient/possible any-longer
(e.g. for cpumap case). This is already fully supported, by simply
calling xdp_return_frame.

This patch is an optimization, which provides xdp_return_frame_rx_napi,
which is a faster variant for these error cases.  It take advantage of
the protection provided by XDP RX running under NAPI protection.

This change is mostly relevant for drivers using the page_pool
allocator as it can take advantage of this. (Tested with mlx5).

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-05-24 18:36:15 -07:00
..
2017-07-11 06:08:58 -04:00
2018-01-19 14:02:12 -05:00
2017-11-27 16:20:04 -05:00
2017-04-05 10:15:20 +02:00
2018-03-23 21:52:19 -04:00
2018-05-11 12:03:06 -04:00
2018-02-06 11:32:48 -05:00
2018-02-28 11:43:28 -05:00
2018-04-23 10:21:24 -04:00
2017-10-11 09:49:34 +02:00
2017-11-16 10:49:00 +09:00
2017-12-11 14:10:06 -05:00
2018-04-19 15:40:13 -04:00
2018-04-26 15:08:04 -04:00
2017-12-15 12:34:00 -05:00
2018-04-26 15:08:04 -04:00
2018-04-07 22:32:31 -04:00
2017-11-08 16:12:33 +09:00
2018-05-14 16:18:27 -04:00
2017-12-05 14:37:13 -05:00
2017-12-04 11:32:53 -05:00
2018-04-17 13:53:13 -04:00
2018-05-18 16:07:02 +02:00
2018-05-24 18:36:15 -07:00