Home
last modified time | relevance | path

Searched refs:xdp_features (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.15/tools/testing/selftests/bpf/
H A Dtest_xdp_features.sh41 ss -tlp | grep -q xdp_features
50 ./xdp_features -f XDP_PASS -D $V1_IP6 -T $V0_IP6 v1 &
52 ip netns exec ${NS} ./xdp_features -t -f XDP_PASS \
60 ip netns exec ${NS} ./xdp_features -t -f XDP_DROP \
67 ./xdp_features -f XDP_ABORTED -D $V1_IP6 -T $V0_IP6 v1 &
69 ip netns exec ${NS} ./xdp_features -t -f XDP_ABORTED \
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 \
84 ./xdp_features -f XDP_REDIRECT -D $V1_IP6 -T $V0_IP6 v1 &
86 ip netns exec ${NS} ./xdp_features -t -f XDP_REDIRECT \
[all …]
H A Dxdp_features.c278 static int dut_attach_xdp_prog(struct xdp_features *skel, int flags) in dut_attach_xdp_prog()
360 static int dut_run(struct xdp_features *skel) in dut_run()
495 static bool tester_collect_detected_cap(struct xdp_features *skel, in tester_collect_detected_cap()
573 static int tester_run(struct xdp_features *skel) in tester_run()
657 struct xdp_features *skel; in main()
H A D.gitignore47 xdp_features
H A DMakefile130 xdp_features \
513 xdp_features.skel.h-deps := xdp_features.bpf.o
784 $(OUTPUT)/xdp_features: xdp_features.c $(OUTPUT)/network_helpers.o $(OUTPUT)/xdp_features.skel.h | …
/linux-6.15/tools/net/ynl/samples/
H A Dnetdev.c32 if (!d->_present.xdp_features) in netdev_print_device()
35 printf("xdp-features (%llx):", d->xdp_features); in netdev_print_device()
36 for (int i = 0; d->xdp_features >= 1U << i; i++) { in netdev_print_device()
37 if (d->xdp_features & (1U << i)) in netdev_print_device()
/linux-6.15/net/core/
H A Dxdp.c997 if (dev->xdp_features == val) in xdp_set_features_flag()
1000 dev->xdp_features = val; in xdp_set_features_flag()
1009 xdp_features_t val = (dev->xdp_features | NETDEV_XDP_ACT_NDO_XMIT); in xdp_features_set_redirect_target()
1019 xdp_features_t val = dev->xdp_features; in xdp_features_clear_redirect_target()
H A Dnetdev-genl.c62 netdev->xdp_features, NETDEV_A_DEV_PAD) || in netdev_nl_dev_fill()
69 if (netdev->xdp_features & NETDEV_XDP_ACT_XSK_ZEROCOPY) { in netdev_nl_dev_fill()
/linux-6.15/kernel/bpf/
H A Ddevmap.c488 if (!(dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT)) in __xdp_enqueue()
491 if (unlikely(!(dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT_SG) && in __xdp_enqueue()
553 if (!(obj->dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT)) in is_valid_dst()
556 if (unlikely(!(obj->dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT_SG) && in is_valid_dst()
/linux-6.15/drivers/net/ethernet/intel/ice/
H A Dice_sf_eth.c53 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in ice_sf_cfg_netdev()
/linux-6.15/Documentation/networking/net_cachelines/
H A Dnet_device.rst28 xdp_features_t xdp_features
/linux-6.15/drivers/net/ethernet/google/gve/
H A Dgve_main.c2178 xdp_features_t xdp_features; in gve_set_netdev_xdp_features() local
2181 xdp_features = NETDEV_XDP_ACT_BASIC; in gve_set_netdev_xdp_features()
2182 xdp_features |= NETDEV_XDP_ACT_REDIRECT; in gve_set_netdev_xdp_features()
2183 xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in gve_set_netdev_xdp_features()
2185 xdp_features = 0; in gve_set_netdev_xdp_features()
2188 xdp_set_features_flag(priv->dev, xdp_features); in gve_set_netdev_xdp_features()
/linux-6.15/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf_common.c140 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in enetc_pf_netdev_setup()
/linux-6.15/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c2766 netdev->xdp_features = NETDEV_XDP_ACT_BASIC; in nfp_net_netdev_init()
2768 netdev->xdp_features |= NETDEV_XDP_ACT_HW_OFFLOAD; in nfp_net_netdev_init()
2774 netdev->xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in nfp_net_netdev_init()
2775 netdev->xdp_features |= NETDEV_XDP_ACT_REDIRECT; in nfp_net_netdev_init()
/linux-6.15/net/xdp/
H A Dxsk_buff_pool.c206 if ((netdev->xdp_features & NETDEV_XDP_ACT_ZC) != NETDEV_XDP_ACT_ZC) { in xp_assign_dev()
/linux-6.15/drivers/net/ethernet/ti/
H A Dcpsw.c1468 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in cpsw_probe_dual_emac()
1647 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in cpsw_probe()
H A Dcpsw_new.c1418 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | in cpsw_create_ports()
/linux-6.15/drivers/net/ethernet/sfc/siena/
H A Defx.c1021 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
/linux-6.15/drivers/net/netdevsim/
H A Dnetdev.c889 dev->xdp_features = NETDEV_XDP_ACT_HW_OFFLOAD; in nsim_setup()
/linux-6.15/drivers/net/ethernet/sfc/
H A Defx.c1122 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.c863 dev->xdp_features = NETDEV_XDP_ACT_BASIC | in lan966x_probe_port()
/linux-6.15/drivers/net/ethernet/aquantia/atlantic/
H A Daq_nic.c387 self->ndev->xdp_features = NETDEV_XDP_ACT_BASIC | in aq_nic_ndev_init()
/linux-6.15/drivers/net/ethernet/socionext/
H A Dnetsec.c2123 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in netsec_probe()
/linux-6.15/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_main.c2223 netdev->xdp_features = NETDEV_XDP_ACT_BASIC; in nicvf_probe()
/linux-6.15/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_main.c1773 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT; in fun_create_netdev()
/linux-6.15/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c4606 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in dpaa2_eth_netdev_init()
4611 net_dev->xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in dpaa2_eth_netdev_init()

123