mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
netlink: pass extended ACK struct to parsing functions
Pass the new extended ACK reporting struct to all of the generic netlink parsing functions. For now, pass NULL in almost all callers (except for some in the core.) Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ba0dc5f6e0
commit
fceb6435e8
129 changed files with 477 additions and 391 deletions
|
@ -296,7 +296,7 @@ static int __tipc_nl_compat_doit(struct tipc_nl_compat_cmd_doit *cmd,
|
|||
|
||||
err = nla_parse(attrbuf, tipc_genl_family.maxattr,
|
||||
(const struct nlattr *)trans_buf->data,
|
||||
trans_buf->len, NULL);
|
||||
trans_buf->len, NULL, NULL);
|
||||
if (err)
|
||||
goto parse_out;
|
||||
|
||||
|
@ -352,7 +352,7 @@ static int tipc_nl_compat_bearer_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(bearer, TIPC_NLA_BEARER_MAX,
|
||||
attrs[TIPC_NLA_BEARER], NULL);
|
||||
attrs[TIPC_NLA_BEARER], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -472,7 +472,7 @@ static int tipc_nl_compat_link_stat_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(link, TIPC_NLA_LINK_MAX, attrs[TIPC_NLA_LINK],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -480,7 +480,7 @@ static int tipc_nl_compat_link_stat_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(prop, TIPC_NLA_PROP_MAX,
|
||||
link[TIPC_NLA_LINK_PROP], NULL);
|
||||
link[TIPC_NLA_LINK_PROP], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -488,7 +488,7 @@ static int tipc_nl_compat_link_stat_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(stats, TIPC_NLA_STATS_MAX,
|
||||
link[TIPC_NLA_LINK_STATS], NULL);
|
||||
link[TIPC_NLA_LINK_STATS], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -598,7 +598,7 @@ static int tipc_nl_compat_link_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(link, TIPC_NLA_LINK_MAX, attrs[TIPC_NLA_LINK],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -795,7 +795,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(nt, TIPC_NLA_NAME_TABLE_MAX,
|
||||
attrs[TIPC_NLA_NAME_TABLE], NULL);
|
||||
attrs[TIPC_NLA_NAME_TABLE], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -803,7 +803,7 @@ static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(publ, TIPC_NLA_PUBL_MAX,
|
||||
nt[TIPC_NLA_NAME_TABLE_PUBL], NULL);
|
||||
nt[TIPC_NLA_NAME_TABLE_PUBL], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -863,7 +863,7 @@ static int __tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(publ, TIPC_NLA_PUBL_MAX, attrs[TIPC_NLA_PUBL],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -929,7 +929,7 @@ static int tipc_nl_compat_sk_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(sock, TIPC_NLA_SOCK_MAX, attrs[TIPC_NLA_SOCK],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -940,8 +940,8 @@ static int tipc_nl_compat_sk_dump(struct tipc_nl_compat_msg *msg,
|
|||
u32 node;
|
||||
struct nlattr *con[TIPC_NLA_CON_MAX + 1];
|
||||
|
||||
nla_parse_nested(con, TIPC_NLA_CON_MAX, sock[TIPC_NLA_SOCK_CON],
|
||||
NULL);
|
||||
nla_parse_nested(con, TIPC_NLA_CON_MAX,
|
||||
sock[TIPC_NLA_SOCK_CON], NULL, NULL);
|
||||
|
||||
node = nla_get_u32(con[TIPC_NLA_CON_NODE]);
|
||||
tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>",
|
||||
|
@ -977,8 +977,8 @@ static int tipc_nl_compat_media_dump(struct tipc_nl_compat_msg *msg,
|
|||
if (!attrs[TIPC_NLA_MEDIA])
|
||||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(media, TIPC_NLA_MEDIA_MAX, attrs[TIPC_NLA_MEDIA],
|
||||
NULL);
|
||||
err = nla_parse_nested(media, TIPC_NLA_MEDIA_MAX,
|
||||
attrs[TIPC_NLA_MEDIA], NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -998,7 +998,7 @@ static int tipc_nl_compat_node_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(node, TIPC_NLA_NODE_MAX, attrs[TIPC_NLA_NODE],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -1045,7 +1045,7 @@ static int tipc_nl_compat_net_dump(struct tipc_nl_compat_msg *msg,
|
|||
return -EINVAL;
|
||||
|
||||
err = nla_parse_nested(net, TIPC_NLA_NET_MAX, attrs[TIPC_NLA_NET],
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue