Lines Matching refs:proto
31 int gre_add_protocol(const struct gre_protocol *proto, u8 version) in gre_add_protocol() argument
36 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol()
41 int gre_del_protocol(const struct gre_protocol *proto, u8 version) in gre_del_protocol() argument
48 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
83 tpi->proto = greh->protocol; in gre_parse_header()
114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { in gre_parse_header()
121 tpi->proto = proto; in gre_parse_header()
148 const struct gre_protocol *proto; in gre_rcv() local
160 proto = rcu_dereference(gre_proto[ver]); in gre_rcv()
161 if (!proto || !proto->handler) in gre_rcv()
163 ret = proto->handler(skb); in gre_rcv()
176 const struct gre_protocol *proto; in gre_err() local
185 proto = rcu_dereference(gre_proto[ver]); in gre_err()
186 if (proto && proto->err_handler) in gre_err()
187 proto->err_handler(skb, info); in gre_err()