/Linux-v6.6/tools/testing/selftests/bpf/ |
D | test_xdp_features.sh | 36 [ "$(pidof xdp_features)" = "" ] || kill $(pidof xdp_features) 2> /dev/null 41 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 \ 58 ./xdp_features -f XDP_DROP -D ::ffff:$V1_IP4 -T ::ffff:$V0_IP4 v1 & 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 \ [all …]
|
D | xdp_features.c | 278 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()
|
D | .gitignore | 54 xdp_features
|
D | Makefile | 105 xdp_features 437 xdp_features.skel.h-deps := xdp_features.bpf.o 651 $(OUTPUT)/xdp_features: xdp_features.c $(OUTPUT)/network_helpers.o $(OUTPUT)/xdp_features.skel.h | …
|
/Linux-v6.6/tools/net/ynl/samples/ |
D | netdev.c | 32 if (!d->_present.xdp_features) in netdev_print_device() 35 printf("%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-v6.6/tools/net/ynl/generated/ |
D | netdev-user.h | 49 __u32 xdp_features:1; member 54 __u64 xdp_features; member
|
D | netdev-user.c | 93 dst->_present.xdp_features = 1; in netdev_dev_get_rsp_parse() 94 dst->xdp_features = mnl_attr_get_u64(attr); in netdev_dev_get_rsp_parse()
|
/Linux-v6.6/net/core/ |
D | netdev-genl.c | 23 netdev->xdp_features, NETDEV_A_DEV_PAD)) { in netdev_nl_dev_fill() 28 if (netdev->xdp_features & NETDEV_XDP_ACT_XSK_ZEROCOPY) { in netdev_nl_dev_fill()
|
D | xdp.c | 779 if (dev->xdp_features == val) in xdp_set_features_flag() 782 dev->xdp_features = val; in xdp_set_features_flag() 791 xdp_features_t val = (dev->xdp_features | NETDEV_XDP_ACT_NDO_XMIT); in xdp_features_set_redirect_target() 801 xdp_features_t val = dev->xdp_features; in xdp_features_clear_redirect_target()
|
/Linux-v6.6/kernel/bpf/ |
D | devmap.c | 473 if (!(dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT)) in __xdp_enqueue() 476 if (unlikely(!(dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT_SG) && in __xdp_enqueue() 538 if (!(obj->dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT)) in is_valid_dst() 541 if (unlikely(!(obj->dev->xdp_features & NETDEV_XDP_ACT_NDO_XMIT_SG) && in is_valid_dst()
|
/Linux-v6.6/drivers/net/ethernet/google/gve/ |
D | gve_main.c | 2006 priv->dev->xdp_features = NETDEV_XDP_ACT_BASIC; in gve_set_netdev_xdp_features() 2007 priv->dev->xdp_features |= NETDEV_XDP_ACT_REDIRECT; in gve_set_netdev_xdp_features() 2008 priv->dev->xdp_features |= NETDEV_XDP_ACT_NDO_XMIT; in gve_set_netdev_xdp_features() 2009 priv->dev->xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in gve_set_netdev_xdp_features() 2011 priv->dev->xdp_features = 0; in gve_set_netdev_xdp_features()
|
/Linux-v6.6/drivers/net/netdevsim/ |
D | netdev.c | 316 dev->xdp_features = NETDEV_XDP_ACT_HW_OFFLOAD; in nsim_setup()
|
/Linux-v6.6/net/xdp/ |
D | xsk_buff_pool.c | 187 if ((netdev->xdp_features & NETDEV_XDP_ACT_ZC) != NETDEV_XDP_ACT_ZC) { in xp_assign_dev()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 2582 netdev->xdp_features = NETDEV_XDP_ACT_BASIC; in nfp_net_netdev_init() 2584 netdev->xdp_features |= NETDEV_XDP_ACT_HW_OFFLOAD; in nfp_net_netdev_init() 2590 netdev->xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in nfp_net_netdev_init()
|
/Linux-v6.6/drivers/net/ethernet/ti/ |
D | cpsw.c | 1461 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in cpsw_probe_dual_emac() 1640 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in cpsw_probe()
|
D | cpsw_new.c | 1409 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | in cpsw_create_ports()
|
/Linux-v6.6/drivers/net/ethernet/sfc/siena/ |
D | efx.c | 1007 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
|
/Linux-v6.6/drivers/net/ethernet/sfc/ |
D | efx.c | 1026 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
|
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 865 dev->xdp_features = NETDEV_XDP_ACT_BASIC | in lan966x_probe_port()
|
/Linux-v6.6/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 810 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in enetc_pf_netdev_setup()
|
/Linux-v6.6/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 387 self->ndev->xdp_features = NETDEV_XDP_ACT_BASIC | in aq_nic_ndev_init()
|
/Linux-v6.6/drivers/net/ethernet/socionext/ |
D | netsec.c | 2118 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in netsec_probe()
|
/Linux-v6.6/drivers/net/ |
D | virtio_net.c | 4411 dev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT; in virtnet_probe() 4442 dev->xdp_features |= NETDEV_XDP_ACT_RX_SG; in virtnet_probe()
|
/Linux-v6.6/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 2223 netdev->xdp_features = NETDEV_XDP_ACT_BASIC; in nicvf_probe()
|
/Linux-v6.6/drivers/net/ethernet/fungible/funeth/ |
D | funeth_main.c | 1773 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT; in fun_create_netdev()
|