Lines Matching refs:proto
35 const struct stp_proto *proto;
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] -
45 if (proto &&
46 !ether_addr_equal(eh->h_dest, proto->group_address))
49 proto = rcu_dereference(stp_proto);
51 if (!proto)
54 proto->rcv(proto, skb, dev);
62 int stp_proto_register(const struct stp_proto *proto)
74 if (is_zero_ether_addr(proto->group_address))
75 rcu_assign_pointer(stp_proto, proto);
77 rcu_assign_pointer(garp_protos[proto->group_address[5] -
78 GARP_ADDR_MIN], proto);
85 void stp_proto_unregister(const struct stp_proto *proto)
88 if (is_zero_ether_addr(proto->group_address))
91 RCU_INIT_POINTER(garp_protos[proto->group_address[5] -