netlink: make nla_nest_start() add NLA_F_NESTED flag
[linux-block.git] / net / openvswitch / conntrack.c
index 6266299444500a83f31ec16101ef977da484f7a3..ff8baf810bb3af3a8d608872371de2b36d36564e 100644 (file)
@@ -1683,7 +1683,7 @@ static bool ovs_ct_nat_to_attr(const struct ovs_conntrack_info *info,
 {
        struct nlattr *start;
 
-       start = nla_nest_start(skb, OVS_CT_ATTR_NAT);
+       start = nla_nest_start_noflag(skb, OVS_CT_ATTR_NAT);
        if (!start)
                return false;
 
@@ -1750,7 +1750,7 @@ int ovs_ct_action_to_attr(const struct ovs_conntrack_info *ct_info,
 {
        struct nlattr *start;
 
-       start = nla_nest_start(skb, OVS_ACTION_ATTR_CT);
+       start = nla_nest_start_noflag(skb, OVS_ACTION_ATTR_CT);
        if (!start)
                return -EMSGSIZE;
 
@@ -2160,7 +2160,7 @@ static int ovs_ct_limit_cmd_get(struct sk_buff *skb, struct genl_info *info)
        if (IS_ERR(reply))
                return PTR_ERR(reply);
 
-       nla_reply = nla_nest_start(reply, OVS_CT_LIMIT_ATTR_ZONE_LIMIT);
+       nla_reply = nla_nest_start_noflag(reply, OVS_CT_LIMIT_ATTR_ZONE_LIMIT);
 
        if (a[OVS_CT_LIMIT_ATTR_ZONE_LIMIT]) {
                err = ovs_ct_limit_get_zone_limit(