Skip to content

Commit 551ddc0

Browse files
Florian Westphaldavem330
authored andcommitted
openvswitch: Revert: "Enable memory mapped Netlink i/o"
revert commit 795449d ("openvswitch: Enable memory mapped Netlink i/o"). Following the mmaped netlink removal this code can be removed. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d1b4c68 commit 551ddc0

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎net/openvswitch/datapath.c‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,6 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
422422
struct sk_buff *nskb = NULL;
423423
struct sk_buff *user_skb = NULL; /* to be queued to userspace */
424424
struct nlattr *nla;
425-
struct genl_info info = {
426-
.dst_sk = ovs_dp_get_net(dp)->genl_sock,
427-
.snd_portid = upcall_info->portid,
428-
};
429425
size_t len;
430426
unsigned int hlen;
431427
int err, dp_ifindex;
@@ -466,7 +462,7 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
466462
hlen = skb->len;
467463

468464
len = upcall_msg_size(upcall_info, hlen);
469-
user_skb = genlmsg_new_unicast(len, &info, GFP_ATOMIC);
465+
user_skb = genlmsg_new(len, GFP_ATOMIC);
470466
if (!user_skb) {
471467
err = -ENOMEM;
472468
goto out;
@@ -876,7 +872,7 @@ static struct sk_buff *ovs_flow_cmd_alloc_info(const struct sw_flow_actions *act
876872
return NULL;
877873

878874
len = ovs_flow_cmd_msg_size(acts, sfid, ufid_flags);
879-
skb = genlmsg_new_unicast(len, info, GFP_KERNEL);
875+
skb = genlmsg_new(len, GFP_KERNEL);
880876
if (!skb)
881877
return ERR_PTR(-ENOMEM);
882878

@@ -1483,7 +1479,7 @@ static int ovs_dp_cmd_fill_info(struct datapath *dp, struct sk_buff *skb,
14831479

14841480
static struct sk_buff *ovs_dp_cmd_alloc_info(struct genl_info *info)
14851481
{
1486-
return genlmsg_new_unicast(ovs_dp_cmd_msg_size(), info, GFP_KERNEL);
1482+
return genlmsg_new(ovs_dp_cmd_msg_size(), GFP_KERNEL);
14871483
}
14881484

14891485
/* Called with rcu_read_lock or ovs_mutex. */

0 commit comments

Comments
 (0)