Skip to content

Commit 4dcaa50

Browse files
idoschdavem330
authored andcommitted
net/sched: act_mirred: Add extack message for offload failure
For better error reporting to user space, add an extack message when mirred action offload fails. Currently, the failure cannot be triggered, but add a message in case the action is extended in the future to support more than ingress/egress mirror/redirect. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 69642c2 commit 4dcaa50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/act_mirred.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static int tcf_mirred_offload_act_setup(struct tc_action *act, void *entry_data,
479479
entry->id = FLOW_ACTION_MIRRED_INGRESS;
480480
tcf_offload_mirred_get_dev(entry, act);
481481
} else {
482+
NL_SET_ERR_MSG_MOD(extack, "Unsupported mirred offload");
482483
return -EOPNOTSUPP;
483484
}
484485
*index_inc = 1;

0 commit comments

Comments
 (0)