summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2017-04-16 12:48:24 -0400
committerDavid S. Miller <davem@davemloft.net>2017-04-17 15:35:38 -0400
commitc21ef3e343ae916ad3cfd4dc6ef6791c1f80a010 (patch)
treebabe94fe139a27e7c998ef76ca6e0791d835a78c /net/can
parentaf3b5158b89d3bab9be881113417558c71b71ca4 (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.c6
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
812static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh) 812static 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
924static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh) 925static 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;