Lines Matching refs:a

615 	const struct nlattr *a;  in output_userspace()  local
623 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in output_userspace()
624 a = nla_next(a, &rem)) { in output_userspace()
625 switch (nla_type(a)) { in output_userspace()
627 upcall.userdata = a; in output_userspace()
631 upcall.portid = nla_get_u32(a); in output_userspace()
638 vport = ovs_vport_rcu(dp, nla_get_u32(a)); in output_userspace()
660 const struct nlattr *a; in sample() local
663 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in sample()
664 a = nla_next(a, &rem)) { in sample()
665 switch (nla_type(a)) { in sample()
667 if (prandom_u32() >= nla_get_u32(a)) in sample()
672 acts_list = a; in sample()
678 a = nla_data(acts_list); in sample()
689 if (likely(nla_type(a) == OVS_ACTION_ATTR_USERSPACE && in sample()
690 nla_is_last(a, rem))) in sample()
691 return output_userspace(dp, skb, key, a); in sample()
698 if (!add_deferred_actions(skb, key, a)) { in sample()
725 const struct nlattr *a) in execute_set_action() argument
728 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
729 OVS_CB(skb)->egress_tun_info = nla_data(a); in execute_set_action()
737 #define get_mask(a, type) ((const type)nla_data(a) + 1) argument
741 const struct nlattr *a) in execute_masked_set_action() argument
745 switch (nla_type(a)) { in execute_masked_set_action()
747 SET_MASKED(skb->priority, nla_get_u32(a), *get_mask(a, u32 *)); in execute_masked_set_action()
752 SET_MASKED(skb->mark, nla_get_u32(a), *get_mask(a, u32 *)); in execute_masked_set_action()
762 err = set_eth_addr(skb, flow_key, nla_data(a), in execute_masked_set_action()
763 get_mask(a, struct ovs_key_ethernet *)); in execute_masked_set_action()
767 err = set_ipv4(skb, flow_key, nla_data(a), in execute_masked_set_action()
768 get_mask(a, struct ovs_key_ipv4 *)); in execute_masked_set_action()
772 err = set_ipv6(skb, flow_key, nla_data(a), in execute_masked_set_action()
773 get_mask(a, struct ovs_key_ipv6 *)); in execute_masked_set_action()
777 err = set_tcp(skb, flow_key, nla_data(a), in execute_masked_set_action()
778 get_mask(a, struct ovs_key_tcp *)); in execute_masked_set_action()
782 err = set_udp(skb, flow_key, nla_data(a), in execute_masked_set_action()
783 get_mask(a, struct ovs_key_udp *)); in execute_masked_set_action()
787 err = set_sctp(skb, flow_key, nla_data(a), in execute_masked_set_action()
788 get_mask(a, struct ovs_key_sctp *)); in execute_masked_set_action()
792 err = set_mpls(skb, flow_key, nla_data(a), get_mask(a, in execute_masked_set_action()
802 const struct nlattr *a, int rem) in execute_recirc() argument
815 if (!nla_is_last(a, rem)) { in execute_recirc()
830 da->pkt_key.recirc_id = nla_get_u32(a); in execute_recirc()
853 const struct nlattr *a; in do_execute_actions() local
856 for (a = attr, rem = len; rem > 0; in do_execute_actions()
857 a = nla_next(a, &rem)) { in do_execute_actions()
869 switch (nla_type(a)) { in do_execute_actions()
871 prev_port = nla_get_u32(a); in do_execute_actions()
875 output_userspace(dp, skb, key, a); in do_execute_actions()
879 execute_hash(skb, key, a); in do_execute_actions()
883 err = push_mpls(skb, key, nla_data(a)); in do_execute_actions()
887 err = pop_mpls(skb, key, nla_get_be16(a)); in do_execute_actions()
891 err = push_vlan(skb, key, nla_data(a)); in do_execute_actions()
899 err = execute_recirc(dp, skb, key, a, rem); in do_execute_actions()
900 if (nla_is_last(a, rem)) { in do_execute_actions()
910 err = execute_set_action(skb, key, nla_data(a)); in do_execute_actions()
915 err = execute_masked_set_action(skb, key, nla_data(a)); in do_execute_actions()
919 err = sample(dp, skb, key, a); in do_execute_actions()