Lines Matching refs:flow
70 static u32 flow_get_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_src() argument
72 __be32 src = flow_get_u32_src(flow); in flow_get_src()
80 static u32 flow_get_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_dst() argument
82 __be32 dst = flow_get_u32_dst(flow); in flow_get_dst()
90 static u32 flow_get_proto(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto() argument
92 return flow->basic.ip_proto; in flow_get_proto()
95 static u32 flow_get_proto_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto_src() argument
97 if (flow->ports.ports) in flow_get_proto_src()
98 return ntohs(flow->ports.src); in flow_get_proto_src()
103 static u32 flow_get_proto_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto_dst() argument
105 if (flow->ports.ports) in flow_get_proto_dst()
106 return ntohs(flow->ports.dst); in flow_get_proto_dst()
152 static u32 flow_get_nfct_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_src() argument
161 return flow_get_src(skb, flow); in flow_get_nfct_src()
164 static u32 flow_get_nfct_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_dst() argument
173 return flow_get_dst(skb, flow); in flow_get_nfct_dst()
176 static u32 flow_get_nfct_proto_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_proto_src() argument
180 return flow_get_proto_src(skb, flow); in flow_get_nfct_proto_src()
183 static u32 flow_get_nfct_proto_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_proto_dst() argument
187 return flow_get_proto_dst(skb, flow); in flow_get_nfct_proto_dst()
237 static u32 flow_key_get(struct sk_buff *skb, int key, struct flow_keys *flow) in flow_key_get() argument
241 return flow_get_src(skb, flow); in flow_key_get()
243 return flow_get_dst(skb, flow); in flow_key_get()
245 return flow_get_proto(skb, flow); in flow_key_get()
247 return flow_get_proto_src(skb, flow); in flow_key_get()
249 return flow_get_proto_dst(skb, flow); in flow_key_get()
259 return flow_get_nfct_src(skb, flow); in flow_key_get()
261 return flow_get_nfct_dst(skb, flow); in flow_key_get()
263 return flow_get_nfct_proto_src(skb, flow); in flow_key_get()
265 return flow_get_nfct_proto_dst(skb, flow); in flow_key_get()