Lines Matching refs:g
125 static void update_stats(struct __sk_buff *skb, struct globals *g) in update_stats() argument
127 struct flow_key_record key = g->flow; in update_stats()
142 struct globals *g, __u32 ip_proto) in parse_ip_proto() argument
182 g->flow.ports = load_word(skb, nhoff); in parse_ip_proto()
184 g->flow.ip_proto = ip_proto; in parse_ip_proto()
185 update_stats(skb, g); in parse_ip_proto()
194 struct globals *g = this_cpu_globals(); in PROG() local
197 if (!g) in PROG()
208 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in PROG()
209 g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in PROG()
216 parse_ip_proto(skb, g, ip_proto); in PROG()
222 struct globals *g = this_cpu_globals(); in PROG() local
225 if (!g) in PROG()
232 g->flow.src = ipv6_addr_hash(skb, in PROG()
234 g->flow.dst = ipv6_addr_hash(skb, in PROG()
239 parse_ip_proto(skb, g, ip_proto); in PROG()