Lines Matching +full:xdp +full:- +full:rx +full:- +full:metadata
1 // SPDX-License-Identifier: GPL-2.0
9 #include "netdev-user.h"
24 if (!d->_present.ifindex) in netdev_print_device()
27 name = if_indextoname(d->ifindex, ifname); in netdev_print_device()
30 printf("[%d]\t", d->ifindex); in netdev_print_device()
32 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()
41 printf(" xdp-rx-metadata-features (%llx):", d->xdp_rx_metadata_features); in netdev_print_device()
42 for (int i = 0; d->xdp_rx_metadata_features >= 1U << i; i++) { in netdev_print_device()
43 if (d->xdp_rx_metadata_features & (1U << i)) in netdev_print_device()
47 printf(" xsk-features (%llx):", d->xsk_features); in netdev_print_device()
48 for (int i = 0; d->xsk_features >= 1U << i; i++) { in netdev_print_device()
49 if (d->xsk_features & (1U << i)) in netdev_print_device()
53 printf(" xdp-zc-max-segs=%u", d->xdp_zc_max_segs); in netdev_print_device()
81 printf("Select ifc ($ifindex; or 0 = dump; or -2 ntf check): "); in main()
111 } else if (ifindex == -2) { in main()
115 netdev_print_device((struct netdev_dev_get_rsp *)&ntf->data, in main()
116 ntf->cmd); in main()
124 fprintf(stderr, "YNL: %s\n", ys->err.msg); in main()