Lines Matching refs:flow

69 static u32 flow_get_src(const struct sk_buff *skb, const struct flow_keys *flow)  in flow_get_src()  argument
71 if (flow->src) in flow_get_src()
72 return ntohl(flow->src); in flow_get_src()
76 static u32 flow_get_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_dst() argument
78 if (flow->dst) in flow_get_dst()
79 return ntohl(flow->dst); in flow_get_dst()
83 static u32 flow_get_proto(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto() argument
85 return flow->ip_proto; in flow_get_proto()
88 static u32 flow_get_proto_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto_src() argument
90 if (flow->ports) in flow_get_proto_src()
91 return ntohs(flow->port16[0]); in flow_get_proto_src()
96 static u32 flow_get_proto_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_proto_dst() argument
98 if (flow->ports) in flow_get_proto_dst()
99 return ntohs(flow->port16[1]); in flow_get_proto_dst()
145 static u32 flow_get_nfct_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_src() argument
154 return flow_get_src(skb, flow); in flow_get_nfct_src()
157 static u32 flow_get_nfct_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_dst() argument
166 return flow_get_dst(skb, flow); in flow_get_nfct_dst()
169 static u32 flow_get_nfct_proto_src(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_proto_src() argument
173 return flow_get_proto_src(skb, flow); in flow_get_nfct_proto_src()
176 static u32 flow_get_nfct_proto_dst(const struct sk_buff *skb, const struct flow_keys *flow) in flow_get_nfct_proto_dst() argument
180 return flow_get_proto_dst(skb, flow); in flow_get_nfct_proto_dst()
224 static u32 flow_key_get(struct sk_buff *skb, int key, struct flow_keys *flow) in flow_key_get() argument
228 return flow_get_src(skb, flow); in flow_key_get()
230 return flow_get_dst(skb, flow); in flow_key_get()
232 return flow_get_proto(skb, flow); in flow_key_get()
234 return flow_get_proto_src(skb, flow); in flow_key_get()
236 return flow_get_proto_dst(skb, flow); in flow_key_get()
246 return flow_get_nfct_src(skb, flow); in flow_key_get()
248 return flow_get_nfct_dst(skb, flow); in flow_key_get()
250 return flow_get_nfct_proto_src(skb, flow); in flow_key_get()
252 return flow_get_nfct_proto_dst(skb, flow); in flow_key_get()