Skip to content

Commit bf3b99e

Browse files
idoschdavem330
authored andcommitted
net/sched: act_pedit: Add extack message for offload failure
For better error reporting to user space, add an extack message when pedit 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 set/add commands. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bca3821 commit bf3b99e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/act_pedit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ static int tcf_pedit_offload_act_setup(struct tc_action *act, void *entry_data,
504504
entry->id = FLOW_ACTION_ADD;
505505
break;
506506
default:
507+
NL_SET_ERR_MSG_MOD(extack, "Unsupported pedit command offload");
507508
return -EOPNOTSUPP;
508509
}
509510
entry->mangle.htype = tcf_pedit_htype(act, k);

0 commit comments

Comments
 (0)