TCA_ACT_MAX_PRIO
unsigned long tc_act_cookies[TCA_ACT_MAX_PRIO];
for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = (exts)->actions[i]); i++)
for (i = 0; i < TCA_ACT_MAX_PRIO && ((a) = actions[i]); i++)
u32 jmp_ttl = TCA_ACT_MAX_PRIO; /*matches actions per filter */
struct tc_action_ops *ops[TCA_ACT_MAX_PRIO] = {};
struct nlattr *tb[TCA_ACT_MAX_PRIO + 2];
err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX_PRIO + 1, nla, NULL,
if (tb[TCA_ACT_MAX_PRIO + 1]) {
TCA_ACT_MAX_PRIO);
for (i = 1; i <= TCA_ACT_MAX_PRIO && tb[i]; i++) {
for (i = 1; i <= TCA_ACT_MAX_PRIO && tb[i]; i++) {
for (i = 0; i < TCA_ACT_MAX_PRIO && ops[i]; i++)
struct tc_action *actions[TCA_ACT_MAX_PRIO] = {
struct nlattr *tb[TCA_ACT_MAX_PRIO + 1];
struct tc_action *actions[TCA_ACT_MAX_PRIO] = {};
ret = nla_parse_nested_deprecated(tb, TCA_ACT_MAX_PRIO, nla, NULL,
for (i = 1; i <= TCA_ACT_MAX_PRIO && tb[i]; i++) {
struct tc_action *actions[TCA_ACT_MAX_PRIO] = {};
int init_res[TCA_ACT_MAX_PRIO] = {};
struct nlattr *tb[TCA_ACT_MAX_PRIO + 1];
if (nla_parse_deprecated(tb, TCA_ACT_MAX_PRIO, nla_data(tb1), NLMSG_ALIGN(nla_len(tb1)), NULL, NULL) < 0)
struct tc_action *actions[TCA_ACT_MAX_PRIO] = {
n_i >= TCA_ACT_MAX_PRIO)
exts->actions = kzalloc_objs(struct tc_action *, TCA_ACT_MAX_PRIO);
int init_res[TCA_ACT_MAX_PRIO] = {};
struct nlattr *tb[TCA_ACT_MAX_PRIO + 1];
if (libbpf_nla_parse_nested(tb, TCA_ACT_MAX_PRIO, attr, NULL) < 0)
for (act = 0; act <= TCA_ACT_MAX_PRIO; act++) {