| /linux/tools/testing/selftests/bpf/ |
| H A 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 …]
|
| H A D | xdp_features.c | 279 static int dut_attach_xdp_prog(struct xdp_features *skel, int flags) in dut_attach_xdp_prog() 361 static int dut_run(struct xdp_features *skel) in dut_run() 496 static bool tester_collect_detected_cap(struct xdp_features *skel, in tester_collect_detected_cap() 574 static int tester_run(struct xdp_features *skel) in tester_run() 658 struct xdp_features *skel; in main()
|
| H A D | .gitignore | 44 xdp_features
|
| H A D | Makefile | 145 xdp_features \ 547 xdp_features.skel.h-deps := xdp_features.bpf.o 950 $(OUTPUT)/xdp_features: xdp_features.c network_helpers.c xdp_features.h \ 952 test_progs.h bpf_util.h $(OUTPUT)/xdp_features.skel.h \
|
| /linux/tools/net/ynl/samples/ |
| H A D | netdev.c | |
| /linux/net/core/ |
| H A D | xdp.c | 1002 if (dev->xdp_features == val) in xdp_set_features_flag_locked() 1006 dev->xdp_features = val; in xdp_set_features_flag_locked() 1024 xdp_features_t val = (dev->xdp_features | NETDEV_XDP_ACT_NDO_XMIT); in xdp_features_set_redirect_target_locked() 1042 xdp_features_t val = dev->xdp_features; in xdp_features_clear_redirect_target_locked()
|
| H A D | netdev-genl.c | 65 netdev->xdp_features, NETDEV_A_DEV_PAD) || in netdev_nl_dev_fill() 72 if (netdev->xdp_features & NETDEV_XDP_ACT_XSK_ZEROCOPY) { in netdev_nl_dev_fill()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_main.c | 2380 xdp_features_t xdp_features; in gve_set_netdev_xdp_features() local 2383 xdp_features = NETDEV_XDP_ACT_BASIC; in gve_set_netdev_xdp_features() 2384 xdp_features |= NETDEV_XDP_ACT_REDIRECT; in gve_set_netdev_xdp_features() 2385 xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in gve_set_netdev_xdp_features() 2387 xdp_features = NETDEV_XDP_ACT_BASIC; in gve_set_netdev_xdp_features() 2388 xdp_features |= NETDEV_XDP_ACT_REDIRECT; in gve_set_netdev_xdp_features() 2389 xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in gve_set_netdev_xdp_features() 2391 xdp_features = 0; in gve_set_netdev_xdp_features() 2394 xdp_set_features_flag_locked(priv->dev, xdp_features); in gve_set_netdev_xdp_features()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_common.c | 2766 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/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf_common.c | 249 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in enetc_pf_netdev_setup()
|
| /linux/net/xdp/ |
| H A D | xsk_buff_pool.c | 212 if ((netdev->xdp_features & NETDEV_XDP_ACT_XSK) != NETDEV_XDP_ACT_XSK) { in xp_assign_dev()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_netdev.c | 821 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_RX_SG; in fbnic_netdev_alloc()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | efx.c | 1021 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx.c | 1126 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_main.c | 868 dev->xdp_features = NETDEV_XDP_ACT_BASIC | in lan966x_probe_port()
|
| /linux/drivers/net/ethernet/fungible/funeth/ |
| H A D | funeth_main.c | 1761 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT; in fun_create_netdev()
|
| /linux/drivers/net/ethernet/socionext/ |
| H A D | netsec.c | 2123 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in netsec_probe()
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-eth.c | 4627 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in dpaa2_eth_netdev_init() 4632 net_dev->xdp_features |= NETDEV_XDP_ACT_XSK_ZEROCOPY; in dpaa2_eth_netdev_init()
|
| /linux/drivers/net/ |
| H A D | xen-netfront.c | 1751 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in xennet_create_dev()
|
| H A D | virtio_net.c | 6843 dev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in virtnet_probe() 6875 dev->xdp_features |= NETDEV_XDP_ACT_RX_SG; in virtnet_probe()
|
| H A D | tun.c | 1421 dev->xdp_features = NETDEV_XDP_ACT_BASIC | in tun_net_initialize()
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_main.c | 2644 netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in tsnep_probe()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_main.c | 893 ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | in qede_init_ndev()
|
| /linux/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_eth.c | 247 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in dpaa_netdev_init()
|
| /linux/include/linux/ |
| H A D | netdevice.h | 2267 xdp_features_t xdp_features; member
|