Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hv_netvsc: Update document for XDP support

Added the new section in the document regarding XDP support
by hv_netvsc driver.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Haiyang Zhang and committed by
David S. Miller
12fa7438 351e1581

+21
+21
Documentation/networking/device_drivers/microsoft/netvsc.txt
··· 82 82 contain one or more packets. The send buffer is an optimization, the driver 83 83 will use slower method to handle very large packets or if the send buffer 84 84 area is exhausted. 85 + 86 + XDP support 87 + ----------- 88 + XDP (eXpress Data Path) is a feature that runs eBPF bytecode at the early 89 + stage when packets arrive at a NIC card. The goal is to increase performance 90 + for packet processing, reducing the overhead of SKB allocation and other 91 + upper network layers. 92 + 93 + hv_netvsc supports XDP in native mode, and transparently sets the XDP 94 + program on the associated VF NIC as well. 95 + 96 + Setting / unsetting XDP program on synthetic NIC (netvsc) propagates to 97 + VF NIC automatically. Setting / unsetting XDP program on VF NIC directly 98 + is not recommended, also not propagated to synthetic NIC, and may be 99 + overwritten by setting of synthetic NIC. 100 + 101 + XDP program cannot run with LRO (RSC) enabled, so you need to disable LRO 102 + before running XDP: 103 + ethtool -K eth0 lro off 104 + 105 + XDP_REDIRECT action is not yet supported.