diff options
Diffstat (limited to 'net/openvswitch/datapath.c')
| -rw-r--r-- | net/openvswitch/datapath.c | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 6fbd2decb19e..91a8b004dc51 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -91,8 +91,7 @@ static bool ovs_must_notify(struct genl_family *family, struct genl_info *info,  static void ovs_notify(struct genl_family *family,  		       struct sk_buff *skb, struct genl_info *info)  { -	genl_notify(family, skb, genl_info_net(info), info->snd_portid, -		    0, info->nlhdr, GFP_KERNEL); +	genl_notify(family, skb, info, 0, GFP_KERNEL);  }  /** @@ -490,9 +489,8 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,  	if (upcall_info->egress_tun_info) {  		nla = nla_nest_start(user_skb, OVS_PACKET_ATTR_EGRESS_TUN_KEY); -		err = ovs_nla_put_egress_tunnel_key(user_skb, -						    upcall_info->egress_tun_info, -						    upcall_info->egress_tun_opts); +		err = ovs_nla_put_tunnel_info(user_skb, +					      upcall_info->egress_tun_info);  		BUG_ON(err);  		nla_nest_end(user_skb, nla);  	} @@ -952,7 +950,7 @@ static int ovs_flow_cmd_new(struct sk_buff *skb, struct genl_info *info)  	if (error)  		goto err_kfree_flow; -	ovs_flow_mask_key(&new_flow->key, &key, &mask); +	ovs_flow_mask_key(&new_flow->key, &key, true, &mask);  	/* Extract flow identifier. */  	error = ovs_nla_get_identifier(&new_flow->id, a[OVS_FLOW_ATTR_UFID], @@ -1080,7 +1078,7 @@ static struct sw_flow_actions *get_flow_actions(struct net *net,  	struct sw_flow_key masked_key;  	int error; -	ovs_flow_mask_key(&masked_key, key, mask); +	ovs_flow_mask_key(&masked_key, key, true, mask);  	error = ovs_nla_copy_actions(net, a, &masked_key, &acts, log);  	if (error) {  		OVS_NLERR(log, @@ -1177,7 +1175,7 @@ static int ovs_flow_cmd_set(struct sk_buff *skb, struct genl_info *info)  						info, OVS_FLOW_CMD_NEW, false,  						ufid_flags); -		if (unlikely(IS_ERR(reply))) { +		if (IS_ERR(reply)) {  			error = PTR_ERR(reply);  			goto err_unlock_ovs;  		} |