Lines Matching refs:nla

53 	struct nlattr *nla;  in actions_may_change_flow()  local
56 nla_for_each_nested(nla, actions, rem) { in actions_may_change_flow()
57 u16 action = nla_type(nla); in actions_may_change_flow()
467 const struct nlattr *nla; in __parse_flow_nlattrs() local
472 nla_for_each_nested(nla, attr, rem) { in __parse_flow_nlattrs()
473 u16 type = nla_type(nla); in __parse_flow_nlattrs()
488 if (!check_attr_len(nla_len(nla), expected_len)) { in __parse_flow_nlattrs()
490 type, nla_len(nla), expected_len); in __parse_flow_nlattrs()
494 if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) { in __parse_flow_nlattrs()
496 a[type] = nla; in __parse_flow_nlattrs()
846 struct nlattr *nla; in vxlan_opt_to_nlattr() local
848 nla = nla_nest_start_noflag(skb, OVS_TUNNEL_KEY_ATTR_VXLAN_OPTS); in vxlan_opt_to_nlattr()
849 if (!nla) in vxlan_opt_to_nlattr()
855 nla_nest_end(skb, nla); in vxlan_opt_to_nlattr()
937 struct nlattr *nla; in ip_tun_to_nlattr() local
940 nla = nla_nest_start_noflag(skb, OVS_KEY_ATTR_TUNNEL); in ip_tun_to_nlattr()
941 if (!nla) in ip_tun_to_nlattr()
949 nla_nest_end(skb, nla); in ip_tun_to_nlattr()
1739 struct nlattr *nla; in nlattr_set() local
1743 nla_for_each_nested(nla, attr, rem) { in nlattr_set()
1744 if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED) in nlattr_set()
1745 nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl); in nlattr_set()
1747 memset(nla_data(nla), val, nla_len(nla)); in nlattr_set()
1749 if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE) in nlattr_set()
1750 *(u32 *)nla_data(nla) &= CT_SUPPORTED_MASK; in nlattr_set()
1992 struct nlattr *nla; in __ovs_nla_put_key() local
2036 nla = nla_reserve(skb, OVS_KEY_ATTR_ETHERNET, sizeof(*eth_key)); in __ovs_nla_put_key()
2037 if (!nla) in __ovs_nla_put_key()
2040 eth_key = nla_data(nla); in __ovs_nla_put_key()
2090 nla = nla_reserve(skb, OVS_KEY_ATTR_IPV4, sizeof(*ipv4_key)); in __ovs_nla_put_key()
2091 if (!nla) in __ovs_nla_put_key()
2093 ipv4_key = nla_data(nla); in __ovs_nla_put_key()
2103 nla = nla_reserve(skb, OVS_KEY_ATTR_IPV6, sizeof(*ipv6_key)); in __ovs_nla_put_key()
2104 if (!nla) in __ovs_nla_put_key()
2106 ipv6_key = nla_data(nla); in __ovs_nla_put_key()
2123 nla = nla_reserve(skb, OVS_KEY_ATTR_ARP, sizeof(*arp_key)); in __ovs_nla_put_key()
2124 if (!nla) in __ovs_nla_put_key()
2126 arp_key = nla_data(nla); in __ovs_nla_put_key()
2138 nla = nla_reserve(skb, OVS_KEY_ATTR_MPLS, in __ovs_nla_put_key()
2140 if (!nla) in __ovs_nla_put_key()
2143 mpls_key = nla_data(nla); in __ovs_nla_put_key()
2155 nla = nla_reserve(skb, OVS_KEY_ATTR_TCP, sizeof(*tcp_key)); in __ovs_nla_put_key()
2156 if (!nla) in __ovs_nla_put_key()
2158 tcp_key = nla_data(nla); in __ovs_nla_put_key()
2167 nla = nla_reserve(skb, OVS_KEY_ATTR_UDP, sizeof(*udp_key)); in __ovs_nla_put_key()
2168 if (!nla) in __ovs_nla_put_key()
2170 udp_key = nla_data(nla); in __ovs_nla_put_key()
2176 nla = nla_reserve(skb, OVS_KEY_ATTR_SCTP, sizeof(*sctp_key)); in __ovs_nla_put_key()
2177 if (!nla) in __ovs_nla_put_key()
2179 sctp_key = nla_data(nla); in __ovs_nla_put_key()
2186 nla = nla_reserve(skb, OVS_KEY_ATTR_ICMP, sizeof(*icmp_key)); in __ovs_nla_put_key()
2187 if (!nla) in __ovs_nla_put_key()
2189 icmp_key = nla_data(nla); in __ovs_nla_put_key()
2196 nla = nla_reserve(skb, OVS_KEY_ATTR_ICMPV6, in __ovs_nla_put_key()
2198 if (!nla) in __ovs_nla_put_key()
2200 icmpv6_key = nla_data(nla); in __ovs_nla_put_key()
2208 nla = nla_reserve(skb, OVS_KEY_ATTR_ND, sizeof(*nd_key)); in __ovs_nla_put_key()
2209 if (!nla) in __ovs_nla_put_key()
2211 nd_key = nla_data(nla); in __ovs_nla_put_key()
2237 struct nlattr *nla; in ovs_nla_put_key() local
2239 nla = nla_nest_start_noflag(skb, attr); in ovs_nla_put_key()
2240 if (!nla) in ovs_nla_put_key()
2245 nla_nest_end(skb, nla); in ovs_nla_put_key()
3591 struct nlattr *nla; in masked_set_action_to_set_action_attr() local
3597 nla = nla_nest_start_noflag(skb, OVS_ACTION_ATTR_SET); in masked_set_action_to_set_action_attr()
3598 if (!nla) in masked_set_action_to_set_action_attr()
3604 nla_nest_end(skb, nla); in masked_set_action_to_set_action_attr()