Home
last modified time | relevance | path

Searched full:af_xdp (Results 1 – 25 of 55) sorted by relevance

123

/linux/include/net/
H A Dxdp_sock.h2 /* AF_XDP internal functions
97 * AF_XDP TX metadata hooks for network devices.
102 * Called when AF_XDP frame requested egress timestamp.
105 * Called when AF_XDP frame, that had requested egress timestamp,
109 * Called when AF_XDP frame requested HW checksum offload. csum_start
129 * @meta: pointer to AF_XDP metadata area
133 * it prepares AF_XDP egress packet. The value of @compl should be stored
149 * xsk_tx_metadata_request - Evaluate AF_XDP TX metadata at submission
151 * @meta: pointer to AF_XDP metadata area
156 * it prepares AF_XDP egress packet.
[all …]
H A Dxsk_buff_pool.h102 /* AF_XDP core. */
117 /* AF_XDP, and XDP core. */
135 /* AF_XDP ZC drivers, via xdp_sock_buff.h */ in xp_init_xskb_dma()
/linux/Documentation/bpf/
H A Dmap_xskmap.rst13 This map type redirects raw XDP frames to `AF_XDP`_ sockets (XSKs), a new type of
15 user space without having to traverse the full network stack. An AF_XDP socket
43 An AF_XDP socket that is bound to a certain <netdev/queue_id> will *only*
50 the ``max_entries`` map parameter. For AF_XDP ``max_entries`` is equal to the number
179 For an example on how create AF_XDP sockets, please see the AF_XDP-example and
180 AF_XDP-forwarding programs in the `bpf-examples`_ directory in the `libxdp`_ repository.
181 For a detailed explanation of the AF_XDP interface please see:
184 - `AF_XDP`_ kernel documentation.
187 The most comprehensive resource for using XSKMAPs and AF_XDP is `libxdp`_.
190 .. _AF_XDP: https://www.kernel.org/doc/html/latest/networking/af_xdp.html
[all …]
/linux/Documentation/networking/
H A Dxdp-rx-metadata.rst55 the AF_XDP use case, see below).
57 AF_XDP chapter
60 :doc:`af_xdp` use-case implies that there is a contract between the BPF
61 program that redirects XDP frames into the ``AF_XDP`` socket (``XSK``) and
67 ``METADATA_SIZE`` is an application-specific constant (``AF_XDP`` receive
70 Here is the ``AF_XDP`` consumer layout (note missing ``data_meta`` pointer)::
H A Dxsk-tx-metadata.rst4 AF_XDP TX Metadata
8 via :doc:`af_xdp`. Refer to :doc:`xdp-rx-metadata` on how to access similar
38 An AF_XDP application can request headrooms larger than ``sizeof(struct
H A Dindex.rst11 af_xdp
/linux/tools/testing/selftests/bpf/
H A Dtest_xsk.sh5 # AF_XDP selftests based on veth
7 # End-to-end AF_XDP over Veth test
28 # AF_XDP is an address family optimized for high performance packet processing,
31 # An AF_XDP socket is linked to a single UMEM which is a region of virtual
34 # Refer to AF_XDP Kernel Documentation for detailed information:
35 # https://www.kernel.org/doc/html/latest/networking/af_xdp.html
H A Dxskxceiver.h17 #ifndef AF_XDP
18 #define AF_XDP 44 macro
22 #define PF_XDP AF_XDP
H A Dxsk.c4 * AF_XDP user-space access library.
44 #ifndef AF_XDP
45 #define AF_XDP 44 macro
49 #define PF_XDP AF_XDP
241 umem->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_umem__create()
569 xsk->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_socket__create_shared()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c603 * ice_clean_xdp_irq_zc - produce AF_XDP descriptors to CQ
605 * @xsk_pool: AF_XDP buffer pool pointer
665 * ice_xmit_xdp_tx_zc - AF_XDP ZC handler for XDP_TX
668 * @xsk_pool: AF_XDP buffer pool pointer
755 * @xsk_pool: AF_XDP buffer pool pointer
835 * @rx_ring: AF_XDP Rx ring
836 * @xsk_pool: AF_XDP buffer pool pointer
980 * ice_xmit_pkt - produce a single HW Tx descriptor out of AF_XDP descriptor
983 * @desc: AF_XDP descriptor to pull the DMA address and length from
1005 * ice_xmit_pkt_batch - produce a batch of HW Tx descriptors out of AF_XDP descriptors
[all …]
/linux/net/xdp/
H A Dxsk_diag.c108 msg->xdiag_family = AF_XDP; in xsk_diag_fill()
198 .family = AF_XDP,
216 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, AF_XDP);
/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_metadata.c63 /* Forwarding UDP:8080 to AF_XDP */ in rx()
84 * timestamp, so put some non-zero value into AF_XDP frame for in rx()
H A Dxdp_hw_metadata.c69 /* Forwarding UDP:9091 to AF_XDP */ in rx()
/linux/drivers/net/ethernet/netronome/nfp/nfd3/
H A Dnfd3.h57 * @xdp: XSK buffer pool handle (for AF_XDP)
64 * buffer from the TX queue (for AF_XDP).
/linux/tools/include/uapi/linux/
H A Dif_xdp.h29 * handle multiple descriptors per packet thus enabling AF_XDP to split
130 /* AF_XDP offloads request. 'request' union member is consumed by the driver
H A Dnetdev.h19 * @NETDEV_XDP_ACT_XSK_ZEROCOPY: This feature informs if netdev supports AF_XDP
/linux/include/uapi/linux/
H A Dif_xdp.h29 * handle multiple descriptors per packet thus enabling AF_XDP to split
130 /* AF_XDP offloads request. 'request' union member is consumed by the driver
H A Dnetdev.h19 * @NETDEV_XDP_ACT_XSK_ZEROCOPY: This feature informs if netdev supports AF_XDP
/linux/net/ethtool/
H A Dchannels.c172 /* Disabling channels, query zero-copy AF_XDP sockets */ in ethnl_set_channels()
177 …GENL_SET_ERR_MSG(info, "requested channel counts are too low for existing zerocopy AF_XDP sockets"… in ethnl_set_channels()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_metadata.c415 /* Setup separate AF_XDP for RX interface. */ in test_xdp_metadata()
460 /* Setup separate AF_XDP for TX interface nad send packet to the RX socket. */ in test_xdp_metadata()
474 /* Verify packet sent from AF_XDP has proper metadata. */ in test_xdp_metadata()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net.h293 * @xdp: XSK buffer pool handle (for AF_XDP)
310 * @xsk_rxbufs: Array of transmitted FL/RX buffers (for AF_XDP)
348 * @xsk_pool: XSK buffer pool active on vector queue pair (for AF_XDP)
499 * @xsk_pools: XSK buffer pools, @max_r_vecs in size (for AF_XDP).
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Dtx.c42 * in order, so post a NOP to get a CQE. Since AF_XDP doesn't distinguish
/linux/Documentation/netlink/specs/
H A Dnetdev.yaml30 This feature informs if netdev supports AF_XDP in zero copy mode.
114 doc: Bitmask of enabled AF_XDP features.
/linux/include/linux/
H A Dsocket.h239 #define AF_XDP 44 /* XDP sockets */ macro
293 #define PF_XDP AF_XDP
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h239 #define AF_XDP 44 /* XDP sockets */ macro
293 #define PF_XDP AF_XDP

123