Lines Matching defs:feature
34 } feature;
65 "USAGE: ./xdp-features [-vt] [-f <xdp-feature>] [-D <dut-data-ip>] [-T <tester-data-ip>] [-C <dut-ctrl-ip>] <iface-name>\n"
80 { "feature", 'f', "XDP-FEATURE", 0, "XDP feature to test" },
90 env.feature.action = XDP_PASS;
91 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC;
93 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC;
94 env.feature.action = XDP_DROP;
96 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC;
97 env.feature.action = XDP_ABORTED;
99 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC;
100 env.feature.action = XDP_TX;
102 env.feature.drv_feature = NETDEV_XDP_ACT_REDIRECT;
103 env.feature.action = XDP_REDIRECT;
105 env.feature.drv_feature = NETDEV_XDP_ACT_NDO_XMIT;
115 switch (env.feature.action) {
130 if (env.feature.drv_feature == NETDEV_XDP_ACT_NDO_XMIT)
147 fprintf(stderr, "Invalid xdp feature: %s\n", arg);
212 env.feature.drv_feature = NETDEV_XDP_ACT_NDO_XMIT;
213 env.feature.action = -EINVAL;
280 enum xdp_action action = env.feature.action;
285 if (env.feature.drv_feature == NETDEV_XDP_ACT_NDO_XMIT) {
510 switch (env.feature.action) {
522 if (env.feature.drv_feature == NETDEV_XDP_ACT_NDO_XMIT)
609 if (env.feature.drv_feature == NETDEV_XDP_ACT_NDO_XMIT ||
610 env.feature.action == XDP_TX)
647 env.feature.drv_feature & advertised_feature ? GREEN("ADVERTISED")