diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2017-04-16 12:48:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-17 15:35:38 -0400 |
commit | c21ef3e343ae916ad3cfd4dc6ef6791c1f80a010 (patch) | |
tree | babe94fe139a27e7c998ef76ca6e0791d835a78c /net/can | |
parent | af3b5158b89d3bab9be881113417558c71b71ca4 (diff) |
net: rtnetlink: plumb extended ack to doit function
Add netlink_ext_ack arg to rtnl_doit_func. Pass extack arg to nlmsg_parse
for doit functions that call it directly.
This is the first step to using extended error reporting in rtnetlink.
>From here individual subsystems can be updated to set netlink_ext_ack as
needed.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/gw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/can/gw.c b/net/can/gw.c index 3b84fb7d98aa..ad5bf5d508d3 100644 --- a/net/can/gw.c +++ b/net/can/gw.c | |||
@@ -809,7 +809,8 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod, | |||
809 | return 0; | 809 | return 0; |
810 | } | 810 | } |
811 | 811 | ||
812 | static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh) | 812 | static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh, |
813 | struct netlink_ext_ack *extack) | ||
813 | { | 814 | { |
814 | struct rtcanmsg *r; | 815 | struct rtcanmsg *r; |
815 | struct cgw_job *gwj; | 816 | struct cgw_job *gwj; |
@@ -921,7 +922,8 @@ static void cgw_remove_all_jobs(void) | |||
921 | } | 922 | } |
922 | } | 923 | } |
923 | 924 | ||
924 | static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh) | 925 | static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh, |
926 | struct netlink_ext_ack *extack) | ||
925 | { | 927 | { |
926 | struct cgw_job *gwj = NULL; | 928 | struct cgw_job *gwj = NULL; |
927 | struct hlist_node *nx; | 929 | struct hlist_node *nx; |