Home
last modified time | relevance | path

Searched full:xdp (Results 1 – 25 of 27) sorted by relevance

12

/Documentation/bpf/
Dredirect.rst25 :doc: xdp redirect
29 those that do, not all of them support non-linear frames. Non-linear xdp
41 The following bpftrace command can be used to capture and count all XDP tracepoints:
45 sudo bpftrace -e 'tracepoint:xdp:* { @cnt[probe] = count(); }'
49 @cnt[tracepoint:xdp:mem_connect]: 18
50 @cnt[tracepoint:xdp:mem_disconnect]: 18
51 @cnt[tracepoint:xdp:xdp_exception]: 19605
52 @cnt[tracepoint:xdp:xdp_devmap_xmit]: 1393604
53 @cnt[tracepoint:xdp:xdp_redirect]: 22292200
56 The various xdp tracepoints can be found in ``source/include/trace/events/xdp.h``
[all …]
Dbpf_prog_run.rst49 returned to userspace. A separate mode for live execution of XDP programs is
52 Running XDP programs in "live frame mode"
55 The ``BPF_PROG_RUN`` command has a separate mode for running live XDP programs,
56 which can be used to execute XDP programs in a way where packets will actually
57 be processed by the kernel after the execution of the XDP program as if they
59 ``BPF_F_TEST_XDP_LIVE_FRAMES`` flag when supplying an XDP program to
63 XDP program many times (suitable for, e.g., running as a traffic generator),
67 - When executing an XDP program in live frame mode, the result of the execution
77 via the same trace points as for regular XDP programs.
80 the regular (non-live) mode. The XDP program will be executed as though the
[all …]
Dmap_xskmap.rst11 The ``BPF_MAP_TYPE_XSKMAP`` is used as a backend map for XDP BPF helper
13 This map type redirects raw XDP frames to `AF_XDP`_ sockets (XSKs), a new type of
44 accept XDP frames from that <netdev/queue_id>. If an XDP program tries to redirect
73 necessary to have an XDP program loaded with at least one XSK in the
151 SEC("xdp")
189 .. _libxdp: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp
191 .. _bpf-examples: https://github.com/xdp-project/bpf-examples
192 .. _libxdp-readme: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp#using-af_xdp-soc…
Dindex.rst9 The Cilium project also maintains a `BPF and XDP Reference Guide`_
45 .. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/
Dmap_cpumap.rst20 Starting from Linux kernel version 5.9 the CPUMAP can run a second XDP program
21 on the remote CPU. This allows an XDP program to split its processing across
25 initial CPU is where the XDP redirect program is executed. The remote CPU
43 fails. This is so that the return value can be one of the XDP program return
128 SEC("xdp")
Dmap_devmap.rst13 used as backend maps for the XDP BPF helper call ``bpf_redirect_map()``.
43 fails. This is so that the return value can be one of the XDP program return
107 must have type XDP with expected attach type ``xdp_devmap``.
177 SEC("xdp")
190 SEC("xdp")
Dbtf.rst986 data = (void *)(long)xdp->data;
987 data_end = (void *)(long)xdp->data_end;
994 $ bpftool prog load ./test_xdp_noinline.o /sys/fs/bpf/test_xdp_noinline type xdp
995 ; data = (void *)(long)xdp->data;
Dbpf_devel_QA.rst29 This may also include issues related to XDP, BPF tracing, etc.
298 A: For UAPI changes related to the XDP or tc layer (e.g. ``cls_bpf``),
Dmap_sockmap.rst485 - https://github.com/jrfastab/linux-kernel-xdp/commit/c89fd73cb9d2d7f3c716c3e00836f07b1aeb261f
/Documentation/networking/
Dxdp-rx-metadata.rst4 XDP RX Metadata
7 This document describes how an eXpress Data Path (XDP) program can access
14 XDP has access to a set of kfuncs to manipulate the metadata in an XDP frame.
16 implement these kfuncs. The set of kfuncs is declared in ``include/net/xdp.h``
22 .. kernel-doc:: net/core/xdp.c
25 .. kernel-doc:: net/core/xdp.c
28 .. kernel-doc:: net/core/xdp.c
31 An XDP program can use these kfuncs to read the metadata into stack
33 consumers, an XDP program can store it into the metadata area carried
42 Within an XDP frame, the metadata layout (accessed via ``xdp_buff``) is
[all …]
Daf_xdp.rst13 This document assumes that the reader is familiar with BPF and XDP. If
17 Using the XDP_REDIRECT action from an XDP program, the program can
18 redirect ingress frames to other XDP enabled netdevs, using the
20 XDP programs to redirect frames to a memory buffer in a user-space
70 How is then packets distributed from an XDP program to the XSKs? There
73 map. The XDP program can then redirect a packet to a specific index in
74 this map and at this point XDP validates that the XSK in that map was
77 dropped. This also means that it is currently mandatory to have an XDP
82 driver does not have support for XDP, or XDP_SKB is explicitly chosen
83 when loading the XDP program, XDP_SKB mode is employed that uses SKBs
[all …]
Dindex.rst135 xdp-rx-metadata
Dnapi.rst70 pool or XDP cannot be used at all when ``budget`` is 0.
72 the argument is 0 driver cannot call any XDP (or page pool) APIs.
77 skb Tx completions and no Rx or XDP packets.
Dxsk-tx-metadata.rst8 via :doc:`af_xdp`. Refer to :doc:`xdp-rx-metadata` on how to access similar
Dpage_pool.rst90 For pages recycled on the XDP xmit and skb paths the page pool will
Dila.rst241 An ILA router has also been implemented in XDP. Description of that is
/Documentation/netlink/specs/
Dnetdev.yaml11 name: xdp-act
17 XDP features set supported by all drivers
34 This feature informs if netdev supports XDP hw offloading.
38 This feature informs if netdev implements non-linear XDP buffer
43 This feature informs if netdev implements non-linear XDP buffer
47 name: xdp-rx-metadata
96 name: xdp-features
97 doc: Bitmask of enabled xdp-features.
99 enum: xdp-act
101 name: xdp-zc-max-segs
[all …]
Drt_link.yaml1067 name: xdp
1069 nested-attributes: xdp-attrs
2011 name: xdp-attrs
2318 - xdp
/Documentation/networking/device_drivers/ethernet/microsoft/
Dnetvsc.rst100 XDP support
102 XDP (eXpress Data Path) is a feature that runs eBPF bytecode at the early
107 hv_netvsc supports XDP in native mode, and transparently sets the XDP
110 Setting / unsetting XDP program on synthetic NIC (netvsc) propagates to
111 VF NIC automatically. Setting / unsetting XDP program on VF NIC directly
115 XDP program cannot run with LRO (RSC) enabled, so you need to disable LRO
116 before running XDP::
/Documentation/networking/device_drivers/ethernet/pensando/
Dionic.rst102 XDP section in Configuring the Driver
105 Support for XDP includes the basics, plus Jumbo frames, Redirect and
/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dcounters.rst494 - The number of packets forwarded back to the port due to XDP program
511 - Number of NOP WQEBBs (WQE building blocks) received posted to the XDP SQ.
532 - The number of packets dropped due to XDP program `XDP_DROP` action. these
538 - The number of times an XDP redirect action was triggered on ring i.
542 - The number of packets redirected to the interface(due to XDP redirect).
548 - The number of packets redirected to the interface(due to XDP redirect),
569 - The number of packets redirected to the interface(due to XDP redirect)
575 interface(due to XDP redirect) on the CQ.
Dkconfig.rst12 | Basic features, ethernet net device rx/tx offloads and XDP, are available with the most basic fla…
/Documentation/networking/device_drivers/ethernet/amazon/
Dena.rst57 ena_xdp.[ch] XDP files
360 This mechanism isn't used when an XDP program is loaded, or when the
/Documentation/bpf/libbpf/
Dprogram_types.rst200 | ``BPF_PROG_TYPE_XDP`` | ``BPF_XDP_CPUMAP`` | ``xdp.frags/…
202 | | | ``xdp/cpumap…
204 | | ``BPF_XDP_DEVMAP`` | ``xdp.frags/…
206 | | | ``xdp/devmap…
208 | | ``BPF_XDP`` | ``xdp.frags`…
210 | | | ``xdp`` …
/Documentation/admin-guide/sysctl/
Dnet.rst56 as networking (e.g. XDP, tc), tracing (e.g. kprobes, uprobes, tracepoints)

12