aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-02-18 09:03:26 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-18 11:42:19 -0500
commit263ea09084d172cac6e40459a690babe8de8e448 (patch)
tree895a8c5db956086687472eda62a9f49fa68c9b3a /net/openvswitch
parent551ddc057e290cc07ff900050da242f35d615d3c (diff)
Revert "genl: Add genlmsg_new_unicast() for unicast message allocation"
This reverts commit bb9b18fb55b0 ("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>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/datapath.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 35a2659a277e..c4e8455d5d56 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -1477,7 +1477,7 @@ error:
1477 return -EMSGSIZE; 1477 return -EMSGSIZE;
1478} 1478}
1479 1479
1480static struct sk_buff *ovs_dp_cmd_alloc_info(struct genl_info *info) 1480static struct sk_buff *ovs_dp_cmd_alloc_info(void)
1481{ 1481{
1482 return genlmsg_new(ovs_dp_cmd_msg_size(), GFP_KERNEL); 1482 return genlmsg_new(ovs_dp_cmd_msg_size(), GFP_KERNEL);
1483} 1483}
@@ -1532,7 +1532,7 @@ static int ovs_dp_cmd_new(struct sk_buff *skb, struct genl_info *info)
1532 if (!a[OVS_DP_ATTR_NAME] || !a[OVS_DP_ATTR_UPCALL_PID]) 1532 if (!a[OVS_DP_ATTR_NAME] || !a[OVS_DP_ATTR_UPCALL_PID])
1533 goto err; 1533 goto err;
1534 1534
1535 reply = ovs_dp_cmd_alloc_info(info); 1535 reply = ovs_dp_cmd_alloc_info();
1536 if (!reply) 1536 if (!reply)
1537 return -ENOMEM; 1537 return -ENOMEM;
1538 1538
@@ -1653,7 +1653,7 @@ static int ovs_dp_cmd_del(struct sk_buff *skb, struct genl_info *info)
1653 struct datapath *dp; 1653 struct datapath *dp;
1654 int err; 1654 int err;
1655 1655
1656 reply = ovs_dp_cmd_alloc_info(info); 1656 reply = ovs_dp_cmd_alloc_info();
1657 if (!reply) 1657 if (!reply)
1658 return -ENOMEM; 1658 return -ENOMEM;
1659 1659
@@ -1686,7 +1686,7 @@ static int ovs_dp_cmd_set(struct sk_buff *skb, struct genl_info *info)
1686 struct datapath *dp; 1686 struct datapath *dp;
1687 int err; 1687 int err;
1688 1688
1689 reply = ovs_dp_cmd_alloc_info(info); 1689 reply = ovs_dp_cmd_alloc_info();
1690 if (!reply) 1690 if (!reply)
1691 return -ENOMEM; 1691 return -ENOMEM;
1692 1692
@@ -1719,7 +1719,7 @@ static int ovs_dp_cmd_get(struct sk_buff *skb, struct genl_info *info)
1719 struct datapath *dp; 1719 struct datapath *dp;
1720 int err; 1720 int err;
1721 1721
1722 reply = ovs_dp_cmd_alloc_info(info); 1722 reply = ovs_dp_cmd_alloc_info();
1723 if (!reply) 1723 if (!reply)
1724 return -ENOMEM; 1724 return -ENOMEM;
1725 1725