Home
last modified time | relevance | path

Searched full:xdp_tx (Results 1 – 25 of 120) sorted by relevance

12345

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_xdp_veth.c6 * XDP_TX
25 #include "xdp_tx.skel.h"
36 struct xdp_tx *xdp_tx; member
90 remote_prog = skeletons->xdp_tx->progs.xdp_tx; in attach_programs_to_veth_pair()
91 remote_link = &skeletons->xdp_tx->links.xdp_tx; in attach_programs_to_veth_pair()
192 skeletons.xdp_tx = xdp_tx__open_and_load(); in test_xdp_veth_redirect()
193 if (!ASSERT_OK_PTR(skeletons.xdp_tx, "xdp_tx__open_and_load")) in test_xdp_veth_redirect()
208 xdp_tx__destroy(skeletons.xdp_tx); in test_xdp_veth_redirect()
H A Dxdp_adjust_tail.c34 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_shrink()
69 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_grow()
109 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2()
128 ASSERT_EQ(tattr.retval, XDP_TX, "case-128 retval"); in test_xdp_adjust_tail_grow2()
180 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-10b retval"); in test_xdp_adjust_frags_tail_shrink()
191 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-4Kb retval"); in test_xdp_adjust_frags_tail_shrink()
201 ASSERT_EQ(topts.retval, XDP_TX, "9Kb-9Kb retval"); in test_xdp_adjust_frags_tail_shrink()
244 ASSERT_EQ(topts.retval, XDP_TX, "9Kb+10b retval"); in test_xdp_adjust_frags_tail_grow()
H A Dxdp_bonding.c7 * 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()
652 skeletons.xdp_tx = xdp_tx__open_and_load(); in serial_test_xdp_bonding()
653 if (!ASSERT_OK_PTR(skeletons.xdp_tx, "xdp_tx__open_and_load")) in serial_test_xdp_bonding()
685 xdp_tx__destroy(skeletons.xdp_tx); in serial_test_xdp_bonding()
H A Dxdp.c38 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/tools/testing/selftests/bpf/progs/
H A Dxdping_kern.c87 return XDP_TX; in icmp_check()
106 if (ret != XDP_TX) in xdping_client()
150 return XDP_TX; in xdping_client()
165 if (ret != XDP_TX) in xdping_server()
180 return XDP_TX; in xdping_server()
H A Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx() function
9 return XDP_TX; in xdp_tx()
H A Dxdp_synproxy_kern.c428 return XDP_TX; in tcp_dissect()
480 return XDP_TX; in tcp_lookup()
729 return XDP_TX; in syncookie_handle_syn()
757 if (ret != XDP_TX) in syncookie_part1()
761 if (ret != XDP_TX) in syncookie_part1()
785 return XDP_TX; in syncookie_part1()
831 if (ret != XDP_TX) in syncookie_xdp()
849 if (ret != XDP_TX) in syncookie_tc()
859 case XDP_TX: in syncookie_tc()
H A Dtest_xdp.c149 return XDP_TX; in handle_ipv4()
209 return XDP_TX; in handle_ipv6()
H A Dtest_xdp_loop.c145 return XDP_TX; in handle_ipv4()
205 return XDP_TX; in handle_ipv6()
H A Dtest_xdp_adjust_tail_grow.c38 return XDP_TX; in _xdp_adjust_tail_grow()
H A Dtest_xdp_adjust_tail_shrink.c49 return XDP_TX; in _xdp_adjust_tail_shrink()
H A Dtest_xdp_dynptr.c156 return XDP_TX; in handle_ipv4()
227 return XDP_TX; in handle_ipv6()
/linux/tools/testing/selftests/bpf/
H A Dtest_xdp_features.sh74 ## 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 Dxdp_features.c75 "- XDP_TX\n";
98 } else if (!strcmp(arg, "XDP_TX")) { in get_xdp_feature()
100 env.feature.action = XDP_TX; in get_xdp_feature()
122 case XDP_TX: in get_xdp_feature_str()
123 return YELLOW("XDP_TX"); in get_xdp_feature_str()
301 case XDP_TX: in dut_attach_xdp_prog()
512 case XDP_TX: in tester_collect_detected_cap()
610 env.feature.action == XDP_TX) in tester_run()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_xdp.h95 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/qlogic/qede/
H A Dqede_fp.c344 struct qede_tx_queue *xdp_tx; in qede_xdp_transmit() local
357 xdp_tx = edev->fp_array[i].xdp_tx; in qede_xdp_transmit()
359 spin_lock(&xdp_tx->xdp_tx_lock); in qede_xdp_transmit()
369 if (unlikely(qede_xdp_xmit(xdp_tx, mapping, 0, xdpf->len, in qede_xdp_transmit()
376 xdp_prod = qed_chain_get_prod_idx(&xdp_tx->tx_pbl); in qede_xdp_transmit()
378 xdp_tx->tx_db.data.bd_prod = cpu_to_le16(xdp_prod); in qede_xdp_transmit()
379 qede_update_tx_producer(xdp_tx); in qede_xdp_transmit()
382 spin_unlock(&xdp_tx->xdp_tx_lock); in qede_xdp_transmit()
1107 case XDP_TX: in qede_rx_xdp()
1119 if (unlikely(qede_xdp_xmit(fp->xdp_tx, bd->mapping, in qede_rx_xdp()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_stats.c33 IONIC_LIF_STAT_DESC(xdp_tx),
162 IONIC_RX_STAT_DESC(xdp_tx),
204 stats->xdp_tx += rxstats->xdp_tx; in ionic_add_lif_rxq_stats()
/linux/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c9 * and then XDP_TX it out.
149 return XDP_TX; in handle_ipv4()
212 return XDP_TX; in handle_ipv6()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_ethtool.c157 u64 xdp_tx; in mana_get_ethtool_stats() local
184 xdp_tx = rx_stats->xdp_tx; in mana_get_ethtool_stats()
191 data[i++] = xdp_tx; in mana_get_ethtool_stats()
/linux/Documentation/bpf/
H A Dbpf_prog_run.rst84 though it arrived on that ifindex, and if it returns ``XDP_TX``, the packet
87 ``XDP_TX`` is actually turned into the same action as an ``XDP_REDIRECT`` to
/linux/drivers/net/
H A Dveth.c49 u64 xdp_tx; member
103 { "xdp_tx", VETH_RQ_STAT(xdp_tx) },
563 rq->stats.vs.xdp_tx += sent; in veth_xdp_flush_bq()
635 case XDP_TX: in veth_xdp_rcv_one()
644 stats->xdp_tx++; in veth_xdp_rcv_one()
796 case XDP_TX: in veth_xdp_rcv_skb()
805 stats->xdp_tx++; in veth_xdp_rcv_skb()
958 if (stats.xdp_tx > 0) in veth_poll()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dxdp.h59 * device or XDP_TX from an XSK RQ. The frame has to be unmapped and
64 /* The xdp_frame was created in place as a result of XDP_TX from a
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_xdp.c103 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/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dcounters.rst495 `XDP_TX` action (bouncing). these packets are not counted by other
501 - Number of multi-packet WQEs transmitted by the netdev and `XDP_TX`-ed by
507 in the WQE and then `XDP_TX`-ed during the RQ context.
516 due to `XDP_TX` action but were dropped due to full tx queue. These packets
523 - The number of times an `XDP_TX` error such as frame too long and frame
524 too short occurred on `XDP_TX` ring of RX ring.
528 - The number of completions received on the CQ of the `XDP_TX` ring.
/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx_lib.c275 u32 frags, xdp_tx = 0; in ice_clean_xdp_irq() local
307 xdp_tx++; in ice_clean_xdp_irq()
330 xdp_ring->xdp_tx_active -= xdp_tx; in ice_clean_xdp_irq()

12345