Lines Matching refs:a
284 const struct nlattr *a) in push_nsh() argument
290 err = nsh_hdr_from_nlattr(a, nh, NSH_HDR_MAX_LEN); in push_nsh()
576 const struct nlattr *a) in set_nsh() argument
588 err = nsh_key_from_nlattr(a, &key, &mask); in set_nsh()
930 const struct nlattr *a; in output_userspace() local
937 nla_for_each_nested(a, attr, rem) { in output_userspace()
938 switch (nla_type(a)) { in output_userspace()
940 upcall.userdata = a; in output_userspace()
952 upcall.portid = nla_get_u32(a); in output_userspace()
959 vport = ovs_vport_rcu(dp, nla_get_u32(a)); in output_userspace()
1087 const struct nlattr *a) in execute_set_action() argument
1090 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
1091 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action()
1103 #define get_mask(a, type) ((const type)nla_data(a) + 1) argument
1107 const struct nlattr *a) in execute_masked_set_action() argument
1111 switch (nla_type(a)) { in execute_masked_set_action()
1113 OVS_SET_MASKED(skb->priority, nla_get_u32(a), in execute_masked_set_action()
1114 *get_mask(a, u32 *)); in execute_masked_set_action()
1119 OVS_SET_MASKED(skb->mark, nla_get_u32(a), *get_mask(a, u32 *)); in execute_masked_set_action()
1129 err = set_eth_addr(skb, flow_key, nla_data(a), in execute_masked_set_action()
1130 get_mask(a, struct ovs_key_ethernet *)); in execute_masked_set_action()
1134 err = set_nsh(skb, flow_key, a); in execute_masked_set_action()
1138 err = set_ipv4(skb, flow_key, nla_data(a), in execute_masked_set_action()
1139 get_mask(a, struct ovs_key_ipv4 *)); in execute_masked_set_action()
1143 err = set_ipv6(skb, flow_key, nla_data(a), in execute_masked_set_action()
1144 get_mask(a, struct ovs_key_ipv6 *)); in execute_masked_set_action()
1148 err = set_tcp(skb, flow_key, nla_data(a), in execute_masked_set_action()
1149 get_mask(a, struct ovs_key_tcp *)); in execute_masked_set_action()
1153 err = set_udp(skb, flow_key, nla_data(a), in execute_masked_set_action()
1154 get_mask(a, struct ovs_key_udp *)); in execute_masked_set_action()
1158 err = set_sctp(skb, flow_key, nla_data(a), in execute_masked_set_action()
1159 get_mask(a, struct ovs_key_sctp *)); in execute_masked_set_action()
1163 err = set_mpls(skb, flow_key, nla_data(a), get_mask(a, in execute_masked_set_action()
1182 const struct nlattr *a, bool last) in execute_recirc() argument
1195 recirc_id = nla_get_u32(a); in execute_recirc()
1283 const struct nlattr *a; in execute_psample() local
1287 nla_for_each_attr(a, nla_data(attr), nla_len(attr), rem) { in execute_psample()
1288 switch (nla_type(a)) { in execute_psample()
1290 psample_group.group_num = nla_get_u32(a); in execute_psample()
1294 md.user_cookie = nla_data(a); in execute_psample()
1295 md.user_cookie_len = nla_len(a); in execute_psample()
1320 const struct nlattr *a; in do_execute_actions() local
1323 for (a = attr, rem = len; rem > 0; in do_execute_actions()
1324 a = nla_next(a, &rem)) { in do_execute_actions()
1328 trace_ovs_do_execute_action(dp, skb, key, a, rem); in do_execute_actions()
1333 switch (nla_type(a)) { in do_execute_actions()
1335 int port = nla_get_u32(a); in do_execute_actions()
1342 if (nla_is_last(a, rem)) { in do_execute_actions()
1357 struct ovs_action_trunc *trunc = nla_data(a); in do_execute_actions()
1365 output_userspace(dp, skb, key, a, attr, in do_execute_actions()
1368 if (nla_is_last(a, rem)) { in do_execute_actions()
1375 execute_hash(skb, key, a); in do_execute_actions()
1379 struct ovs_action_push_mpls *mpls = nla_data(a); in do_execute_actions()
1386 struct ovs_action_add_mpls *mpls = nla_data(a); in do_execute_actions()
1397 err = pop_mpls(skb, key, nla_get_be16(a)); in do_execute_actions()
1401 err = push_vlan(skb, key, nla_data(a)); in do_execute_actions()
1409 bool last = nla_is_last(a, rem); in do_execute_actions()
1411 err = execute_recirc(dp, skb, key, a, last); in do_execute_actions()
1423 err = execute_set_action(skb, key, nla_data(a)); in do_execute_actions()
1428 err = execute_masked_set_action(skb, key, nla_data(a)); in do_execute_actions()
1432 bool last = nla_is_last(a, rem); in do_execute_actions()
1434 err = sample(dp, skb, key, a, last); in do_execute_actions()
1449 nla_data(a)); in do_execute_actions()
1461 err = push_eth(skb, key, nla_data(a)); in do_execute_actions()
1469 err = push_nsh(skb, key, nla_data(a)); in do_execute_actions()
1477 if (ovs_meter_execute(dp, skb, key, nla_get_u32(a))) { in do_execute_actions()
1484 bool last = nla_is_last(a, rem); in do_execute_actions()
1486 err = clone(dp, skb, key, a, last); in do_execute_actions()
1494 bool last = nla_is_last(a, rem); in do_execute_actions()
1496 err = execute_check_pkt_len(dp, skb, key, a, last); in do_execute_actions()
1507 key, a); in do_execute_actions()
1511 enum ovs_drop_reason reason = nla_get_u32(a) in do_execute_actions()
1520 execute_psample(dp, skb, a); in do_execute_actions()
1522 if (nla_is_last(a, rem)) { in do_execute_actions()