mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: sched: act: handle extack in tcf_generic_walker
This patch adds extack handling for a common used TC act function "tcf_generic_walker()" to add an extack message on failures. The tcf_generic_walker() function can fail if get a invalid command different than DEL and GET. The naming "action" here is wrong, the correct naming would be command. Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Alexander Aring <aring@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
417801055b
commit
b36201455a
18 changed files with 23 additions and 20 deletions
|
@ -372,7 +372,7 @@ static int tcf_bpf_walker(struct net *net, struct sk_buff *skb,
|
|||
{
|
||||
struct tc_action_net *tn = net_generic(net, bpf_net_id);
|
||||
|
||||
return tcf_generic_walker(tn, skb, cb, type, ops);
|
||||
return tcf_generic_walker(tn, skb, cb, type, ops, extack);
|
||||
}
|
||||
|
||||
static int tcf_bpf_search(struct net *net, struct tc_action **a, u32 index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue