Skip to content

Commit 6c5aa6f

Browse files
Denis Kirjanovdavem330
Denis Kirjanov
authored andcommitted
xen networking: add basic XDP support for xen-netfront
The patch adds a basic XDP processing to xen-netfront driver. We ran an XDP program for an RX response received from netback driver. Also we request xen-netback to adjust data offset for bpf_xdp_adjust_head() header space for custom headers. synchronization between frontend and backend parts is done by using xenbus state switching: Reconfiguring -> Reconfigured- > Connected UDP packets drop rate using xdp program is around 310 kpps using ./pktgen_sample04_many_flows.sh and 160 kpps without the patch. Signed-off-by: Denis Kirjanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2cef30d commit 6c5aa6f

File tree

2 files changed

+327
-10
lines changed

2 files changed

+327
-10
lines changed

Diff for: drivers/net/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ config XEN_NETDEV_FRONTEND
495495
tristate "Xen network device frontend driver"
496496
depends on XEN
497497
select XEN_XENBUS_FRONTEND
498+
select PAGE_POOL
498499
default y
499500
help
500501
This driver provides support for Xen paravirtual network

0 commit comments

Comments
 (0)