Searched full:xdp (Results 1 – 25 of 27) sorted by relevance
12
25 :doc: xdp redirect29 those that do, not all of them support non-linear frames. Non-linear xdp41 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]: 1850 @cnt[tracepoint:xdp:mem_disconnect]: 1851 @cnt[tracepoint:xdp:xdp_exception]: 1960552 @cnt[tracepoint:xdp:xdp_devmap_xmit]: 139360453 @cnt[tracepoint:xdp:xdp_redirect]: 2229220056 The various xdp tracepoints can be found in ``source/include/trace/events/xdp.h``[all …]
49 returned to userspace. A separate mode for live execution of XDP programs is52 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 actually57 be processed by the kernel after the execution of the XDP program as if they59 ``BPF_F_TEST_XDP_LIVE_FRAMES`` flag when supplying an XDP program to63 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 execution77 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 …]
11 The ``BPF_MAP_TYPE_XSKMAP`` is used as a backend map for XDP BPF helper13 This map type redirects raw XDP frames to `AF_XDP`_ sockets (XSKs), a new type of44 accept XDP frames from that <netdev/queue_id>. If an XDP program tries to redirect73 necessary to have an XDP program loaded with at least one XSK in the151 SEC("xdp")189 .. _libxdp: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp191 .. _bpf-examples: https://github.com/xdp-project/bpf-examples192 .. _libxdp-readme: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp#using-af_xdp-soc…
9 The Cilium project also maintains a `BPF and XDP Reference Guide`_45 .. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/
20 Starting from Linux kernel version 5.9 the CPUMAP can run a second XDP program21 on the remote CPU. This allows an XDP program to split its processing across25 initial CPU is where the XDP redirect program is executed. The remote CPU43 fails. This is so that the return value can be one of the XDP program return128 SEC("xdp")
13 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 return107 must have type XDP with expected attach type ``xdp_devmap``.177 SEC("xdp")190 SEC("xdp")
986 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 xdp995 ; data = (void *)(long)xdp->data;
29 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``),
485 - https://github.com/jrfastab/linux-kernel-xdp/commit/c89fd73cb9d2d7f3c716c3e00836f07b1aeb261f
4 XDP RX Metadata7 This document describes how an eXpress Data Path (XDP) program can access14 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.c25 .. kernel-doc:: net/core/xdp.c28 .. kernel-doc:: net/core/xdp.c31 An XDP program can use these kfuncs to read the metadata into stack33 consumers, an XDP program can store it into the metadata area carried42 Within an XDP frame, the metadata layout (accessed via ``xdp_buff``) is[all …]
13 This document assumes that the reader is familiar with BPF and XDP. If17 Using the XDP_REDIRECT action from an XDP program, the program can18 redirect ingress frames to other XDP enabled netdevs, using the20 XDP programs to redirect frames to a memory buffer in a user-space70 How is then packets distributed from an XDP program to the XSKs? There73 map. The XDP program can then redirect a packet to a specific index in74 this map and at this point XDP validates that the XSK in that map was77 dropped. This also means that it is currently mandatory to have an XDP82 driver does not have support for XDP, or XDP_SKB is explicitly chosen83 when loading the XDP program, XDP_SKB mode is employed that uses SKBs[all …]
135 xdp-rx-metadata
70 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.
8 via :doc:`af_xdp`. Refer to :doc:`xdp-rx-metadata` on how to access similar
90 For pages recycled on the XDP xmit and skb paths the page pool will
241 An ILA router has also been implemented in XDP. Description of that is
11 name: xdp-act17 XDP features set supported by all drivers34 This feature informs if netdev supports XDP hw offloading.38 This feature informs if netdev implements non-linear XDP buffer43 This feature informs if netdev implements non-linear XDP buffer47 name: xdp-rx-metadata96 name: xdp-features97 doc: Bitmask of enabled xdp-features.99 enum: xdp-act101 name: xdp-zc-max-segs[all …]
1067 name: xdp1069 nested-attributes: xdp-attrs2011 name: xdp-attrs2318 - xdp
100 XDP support102 XDP (eXpress Data Path) is a feature that runs eBPF bytecode at the early107 hv_netvsc supports XDP in native mode, and transparently sets the XDP110 Setting / unsetting XDP program on synthetic NIC (netvsc) propagates to111 VF NIC automatically. Setting / unsetting XDP program on VF NIC directly115 XDP program cannot run with LRO (RSC) enabled, so you need to disable LRO116 before running XDP::
102 XDP section in Configuring the Driver105 Support for XDP includes the basics, plus Jumbo frames, Redirect and
494 - The number of packets forwarded back to the port due to XDP program511 - 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. these538 - 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.
12 | Basic features, ethernet net device rx/tx offloads and XDP, are available with the most basic fla…
57 ena_xdp.[ch] XDP files360 This mechanism isn't used when an XDP program is loaded, or when the
200 | ``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`` …
56 as networking (e.g. XDP, tc), tracing (e.g. kprobes, uprobes, tracepoints)