| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_xdp_veth.c | 22 * (XDP_PASS) (XDP_TX) (XDP_PASS) 59 #include "xdp_tx.skel.h" 240 .remote_name = "xdp_tx", 256 struct xdp_tx *xdp_tx; 264 xdp_tx = xdp_tx__open_and_load(); 265 if (!ASSERT_OK_PTR(xdp_tx, "xdp_tx__open_and_load")) 281 bpf_objs[1] = xdp_tx->obj; 314 xdp_tx__destroy(xdp_tx); 36 struct xdp_tx *xdp_tx; global() member
|
| H A D | xdp_bonding.c | 7 * and verifies that XDP_TX program loaded on a bond device 8 * are correctly loaded onto the slave devices and XDP_TX'd 25 #include "xdp_tx.skel.h" 92 struct xdp_tx *xdp_tx; member 183 if (xdp_attach(skeletons, skeletons->xdp_tx->progs.xdp_tx, "bond2")) in bonding_setup() 551 if (xdp_attach(skeletons, skeletons->xdp_tx->progs.xdp_tx, "bond0")) in test_xdp_bonding_redirect_no_up() 554 /* Attach generic XDP (XDP_TX) to veth1. in test_xdp_bonding_redirect_no_up() 556 * runs this program. XDP_TX + bond slave triggers xdp_master_redirect(). in test_xdp_bonding_redirect_no_up() 559 bpf_program__fd(skeletons->xdp_tx->progs.xdp_tx), in test_xdp_bonding_redirect_no_up() 796 skeletons.xdp_tx = xdp_tx__open_and_load(); in serial_test_xdp_bonding() [all …]
|
| H A D | xdp_adjust_tail.c | 34 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_shrink() 74 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_grow() 116 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2() 135 ASSERT_EQ(tattr.retval, XDP_TX, "case-128 retval"); in test_xdp_adjust_tail_grow2() 187 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-10b retval"); in test_xdp_adjust_frags_tail_shrink() 198 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-4Kb retval"); in test_xdp_adjust_frags_tail_shrink() 208 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-9Kb retval"); in test_xdp_adjust_frags_tail_shrink() 251 ASSERT_EQ(topts.retval, XDP_TX, "9Kb+10b retval"); in test_xdp_adjust_frags_tail_grow_4k() 322 ASSERT_EQ(topts.retval, XDP_TX, "90Kb+10b retval"); in test_xdp_adjust_frags_tail_grow_64k()
|
| H A D | xdp.c | 38 ASSERT_EQ(topts.retval, XDP_TX, "ipv4 test_run retval"); in test_xdp() 49 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 test_run retval"); in test_xdp()
|
| /linux/include/net/libeth/ |
| H A D | xdp.h | 111 * for lockless sending (``XDP_TX``, .ndo_xdp_xmit()). Cap the maximum of these 282 * @LIBETH_XDP_TX_XSK: whether the function is called for ``XDP_TX`` for XSk 295 * @LIBETH_XDP_TX_LEN: only for ``XDP_TX``, [15:0] of ::len_fl is actual length 301 * @LIBETH_XDP_TX_FLAGS: only for ``XDP_TX``, [31:16] of ::len_fl is flags 318 * @data: frame start pointer for ``XDP_TX`` 319 * @len_fl: ``XDP_TX``, combined flags [31:16] and len [15:0] field for speed 320 * @soff: ``XDP_TX``, offset from @data to the start of &skb_shared_info 321 * @frag: one (non-head) frag for ``XDP_TX`` 324 * @xsk: ``XDP_TX`` for XSk, XDP buffer for any frag 325 * @len: frag length for XSk ``XDP_TX`` and .ndo_xdp_xmit() [all …]
|
| H A D | tx.h | 15 * @LIBETH_SQE_EMPTY: unused/empty OR XDP_TX/XSk frame, no action required 48 * @sinfo: skb shared info of an XDP_TX frame 50 * @xsk: XSk Rx frame from XDP_TX action 96 * @xdp_tx: number of XDP-not-XSk frames processed 111 u32 xdp_tx; member
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | xdping_kern.c | |
| H A D | xdp_tx.c | 7 int xdp_tx(struct xdp_md *xdp) in xdp_tx() function 9 return XDP_TX; in xdp_tx()
|
| H A D | test_xdp.c | 149 return XDP_TX; in handle_ipv4() 209 return XDP_TX; in handle_ipv6()
|
| H A D | test_xdp_loop.c | 145 return XDP_TX; in handle_ipv4() 205 return XDP_TX; in handle_ipv6()
|
| H A D | test_xdp_adjust_tail_shrink.c | 49 return XDP_TX; in _xdp_adjust_tail_shrink()
|
| H A D | test_xdp_adjust_tail_grow.c | 46 return XDP_TX; in _xdp_adjust_tail_grow()
|
| H A D | test_xdp_dynptr.c | 156 return XDP_TX; in handle_ipv4() 227 return XDP_TX; in handle_ipv6()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_xdp_features.sh | 74 ## XDP_TX 75 ./xdp_features -f XDP_TX -D ::ffff:$V1_IP4 -T ::ffff:$V0_IP4 v1 & 77 ip netns exec ${NS} ./xdp_features -t -f XDP_TX \
|
| H A D | xdp_features.c | 76 "- XDP_TX\n"; 99 } else if (!strcmp(arg, "XDP_TX")) { in get_xdp_feature() 101 env.feature.action = XDP_TX; in get_xdp_feature() 123 case XDP_TX: in get_xdp_feature_str() 124 return YELLOW("XDP_TX"); in get_xdp_feature_str() 302 case XDP_TX: in dut_attach_xdp_prog() 513 case XDP_TX: in tester_collect_detected_cap() 611 env.feature.action == XDP_TX) in tester_run()
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_xdp.h | 95 case XDP_TX: in ena_xdp_execute() 107 /* The XDP queues are shared between XDP_TX and XDP_REDIRECT */ in ena_xdp_execute() 115 xdp_stat = &rx_ring->rx_stats.xdp_tx; in ena_xdp_execute()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | xdp.c | 198 xdpsq->xdp_tx = 0; in idpf_xdpsqs_get() 328 xdpsq->xdp_tx -= cp.xdp_tx; in idpf_xdpsq_complete() 351 .xdp_tx = &xdpsq->xdp_tx, in idpf_xdp_tx_prep()
|
| H A D | xsk.c | 232 xdpsq->xdp_tx -= cp.xdp_tx; in idpf_xsksq_complete_slow() 249 if (likely(!xdpsq->xdp_tx)) { in idpf_xsksq_complete() 289 .xdp_tx = &xdpsq->xdp_tx, in idpf_xsk_tx_prep()
|
| /linux/drivers/net/ethernet/intel/libeth/ |
| H A D | xsk.c | 12 /* ``XDP_TX`` bulking */ 87 * @bq: Tx bulk for queueing on ``XDP_TX`` 107 case XDP_TX: in __libeth_xsk_run_prog_slow()
|
| H A D | xdp.c | 82 /* ``XDP_TX`` bulking */ 130 libeth_trace_xdp_exception(bq->dev, bq->prog, XDP_TX); in libeth_xdp_tx_exception() 331 * completion of ``XDP_TX`` buffers and allows to free them in same bulks
|
| /linux/samples/bpf/ |
| H A D | xdp_tx_iptunnel_kern.c | 9 * and then XDP_TX it out. 149 return XDP_TX; in handle_ipv4() 212 return XDP_TX; in handle_ipv6()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | xdp.h | 53 * device or XDP_TX from an XSK RQ. The frame has to be unmapped and 58 /* The xdp_frame was created in place as a result of XDP_TX from a
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_xdp.c | 103 tx_buf->action = XDP_TX; in __bnxt_xmit_xdp() 148 } else if (tx_buf->action == XDP_TX) { in bnxt_tx_int_xdp() 268 case XDP_TX: in bnxt_rx_xdp()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_rx_dqo.c | 678 case XDP_TX: in gve_xsk_done_dqo() 696 if (xdp_act == XDP_TX) in gve_xsk_done_dqo() 715 case XDP_TX: in gve_xdp_done_dqo() 735 if (xdp_act == XDP_TX) in gve_xdp_done_dqo() 1106 xdp_txs = rx->xdp_actions[XDP_TX]; in gve_rx_poll_dqo() 1181 if (xdp_txs != rx->xdp_actions[XDP_TX]) in gve_rx_poll_dqo()
|
| /linux/drivers/net/ |
| H A D | veth.c | 50 u64 xdp_tx; member 105 { "xdp_tx", VETH_RQ_STAT(xdp_tx) }, 593 rq->stats.vs.xdp_tx += sent; in veth_xdp_flush_bq() 665 case XDP_TX: in veth_xdp_rcv_one() 674 stats->xdp_tx++; in veth_xdp_rcv_one() 825 case XDP_TX: in veth_xdp_rcv_skb() 834 stats->xdp_tx++; in veth_xdp_rcv_skb() 990 if (stats.xdp_tx > 0) in veth_poll()
|