Lines Matching refs:dir

78 			    unsigned int thoff, enum flow_offload_tuple_dir dir)  in nf_flow_snat_ip()  argument
82 switch (dir) { in nf_flow_snat_ip()
101 unsigned int thoff, enum flow_offload_tuple_dir dir) in nf_flow_dnat_ip() argument
105 switch (dir) { in nf_flow_dnat_ip()
123 unsigned int thoff, enum flow_offload_tuple_dir dir, in nf_flow_nat_ip() argument
127 nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir); in nf_flow_nat_ip()
128 nf_flow_snat_ip(flow, skb, iph, thoff, dir); in nf_flow_nat_ip()
131 nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir); in nf_flow_nat_ip()
132 nf_flow_dnat_ip(flow, skb, iph, thoff, dir); in nf_flow_nat_ip()
371 enum flow_offload_tuple_dir dir; in nf_flow_offload_forward() local
376 dir = tuplehash->tuple.dir; in nf_flow_offload_forward()
377 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_forward()
379 mtu = flow->tuplehash[dir].tuple.mtu + ctx->offset; in nf_flow_offload_forward()
402 nf_flow_nat_ip(flow, skb, thoff, dir, iph); in nf_flow_offload_forward()
408 nf_ct_acct_update(flow->ct, tuplehash->tuple.dir, skb->len); in nf_flow_offload_forward()
419 enum flow_offload_tuple_dir dir; in nf_flow_offload_ip_hook() local
447 dir = tuplehash->tuple.dir; in nf_flow_offload_ip_hook()
448 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ip_hook()
455 nexthop = rt_nexthop(rt, flow->tuplehash[!dir].tuple.src_v4.s_addr); in nf_flow_offload_ip_hook()
519 enum flow_offload_tuple_dir dir) in nf_flow_snat_ipv6() argument
523 switch (dir) { in nf_flow_snat_ipv6()
542 enum flow_offload_tuple_dir dir) in nf_flow_dnat_ipv6() argument
546 switch (dir) { in nf_flow_dnat_ipv6()
564 enum flow_offload_tuple_dir dir, in nf_flow_nat_ipv6() argument
570 nf_flow_snat_port(flow, skb, thoff, ip6h->nexthdr, dir); in nf_flow_nat_ipv6()
571 nf_flow_snat_ipv6(flow, skb, ip6h, thoff, dir); in nf_flow_nat_ipv6()
574 nf_flow_dnat_port(flow, skb, thoff, ip6h->nexthdr, dir); in nf_flow_nat_ipv6()
575 nf_flow_dnat_ipv6(flow, skb, ip6h, thoff, dir); in nf_flow_nat_ipv6()
650 enum flow_offload_tuple_dir dir; in nf_flow_offload_ipv6_forward() local
655 dir = tuplehash->tuple.dir; in nf_flow_offload_ipv6_forward()
656 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ipv6_forward()
658 mtu = flow->tuplehash[dir].tuple.mtu + ctx->offset; in nf_flow_offload_ipv6_forward()
680 nf_flow_nat_ipv6(flow, skb, dir, ip6h); in nf_flow_offload_ipv6_forward()
686 nf_ct_acct_update(flow->ct, tuplehash->tuple.dir, skb->len); in nf_flow_offload_ipv6_forward()
714 enum flow_offload_tuple_dir dir; in nf_flow_offload_ipv6_hook() local
742 dir = tuplehash->tuple.dir; in nf_flow_offload_ipv6_hook()
743 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ipv6_hook()
750 nexthop = rt6_nexthop(rt, &flow->tuplehash[!dir].tuple.src_v6); in nf_flow_offload_ipv6_hook()