mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
Revert "genl: Add genlmsg_new_unicast() for unicast message allocation"
This reverts commit bb9b18fb55
("genl: Add genlmsg_new_unicast() for
unicast message allocation")'.
Nothing wrong with it; its no longer needed since this was only for
mmapped netlink support.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
551ddc057e
commit
263ea09084
4 changed files with 5 additions and 31 deletions
|
@ -1477,7 +1477,7 @@ error:
|
|||
return -EMSGSIZE;
|
||||
}
|
||||
|
||||
static struct sk_buff *ovs_dp_cmd_alloc_info(struct genl_info *info)
|
||||
static struct sk_buff *ovs_dp_cmd_alloc_info(void)
|
||||
{
|
||||
return genlmsg_new(ovs_dp_cmd_msg_size(), GFP_KERNEL);
|
||||
}
|
||||
|
@ -1532,7 +1532,7 @@ static int ovs_dp_cmd_new(struct sk_buff *skb, struct genl_info *info)
|
|||
if (!a[OVS_DP_ATTR_NAME] || !a[OVS_DP_ATTR_UPCALL_PID])
|
||||
goto err;
|
||||
|
||||
reply = ovs_dp_cmd_alloc_info(info);
|
||||
reply = ovs_dp_cmd_alloc_info();
|
||||
if (!reply)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -1653,7 +1653,7 @@ static int ovs_dp_cmd_del(struct sk_buff *skb, struct genl_info *info)
|
|||
struct datapath *dp;
|
||||
int err;
|
||||
|
||||
reply = ovs_dp_cmd_alloc_info(info);
|
||||
reply = ovs_dp_cmd_alloc_info();
|
||||
if (!reply)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -1686,7 +1686,7 @@ static int ovs_dp_cmd_set(struct sk_buff *skb, struct genl_info *info)
|
|||
struct datapath *dp;
|
||||
int err;
|
||||
|
||||
reply = ovs_dp_cmd_alloc_info(info);
|
||||
reply = ovs_dp_cmd_alloc_info();
|
||||
if (!reply)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -1719,7 +1719,7 @@ static int ovs_dp_cmd_get(struct sk_buff *skb, struct genl_info *info)
|
|||
struct datapath *dp;
|
||||
int err;
|
||||
|
||||
reply = ovs_dp_cmd_alloc_info(info);
|
||||
reply = ovs_dp_cmd_alloc_info();
|
||||
if (!reply)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue