Lines Matching refs:flow_mode
209 u8 flow_mode; member
636 static bool cake_dsrc(int flow_mode) in cake_dsrc() argument
638 return (flow_mode & CAKE_FLOW_DUAL_SRC) == CAKE_FLOW_DUAL_SRC; in cake_dsrc()
641 static bool cake_ddst(int flow_mode) in cake_ddst() argument
643 return (flow_mode & CAKE_FLOW_DUAL_DST) == CAKE_FLOW_DUAL_DST; in cake_ddst()
647 int flow_mode, u16 flow_override, u16 host_override) in cake_hash() argument
649 bool hash_flows = (!flow_override && !!(flow_mode & CAKE_FLOW_FLOWS)); in cake_hash()
650 bool hash_hosts = (!host_override && !!(flow_mode & CAKE_FLOW_HOSTS)); in cake_hash()
651 bool nat_enabled = !!(flow_mode & CAKE_FLOW_NAT_FLAG); in cake_hash()
657 if (unlikely(flow_mode == CAKE_FLOW_NONE)) in cake_hash()
723 else if (use_skbhash && (flow_mode & CAKE_FLOW_FLOWS)) in cake_hash()
730 if (!(flow_mode & CAKE_FLOW_FLOWS)) { in cake_hash()
731 if (flow_mode & CAKE_FLOW_SRC_IP) in cake_hash()
734 if (flow_mode & CAKE_FLOW_DST_IP) in cake_hash()
763 allocate_src = cake_dsrc(flow_mode); in cake_hash()
764 allocate_dst = cake_ddst(flow_mode); in cake_hash()
778 allocate_src = cake_dsrc(flow_mode); in cake_hash()
779 allocate_dst = cake_ddst(flow_mode); in cake_hash()
792 allocate_src = cake_dsrc(flow_mode); in cake_hash()
793 allocate_dst = cake_ddst(flow_mode); in cake_hash()
1655 struct sk_buff *skb, int flow_mode, int *qerr) in cake_classify() argument
1689 return cake_hash(*t, skb, flow_mode, flow, host) + 1; in cake_classify()
1707 idx = cake_classify(sch, &b, skb, q->flow_mode, &ret); in cake_enqueue()
1868 if (cake_dsrc(q->flow_mode)) in cake_enqueue()
1871 if (cake_ddst(q->flow_mode)) in cake_enqueue()
1887 if (cake_dsrc(q->flow_mode)) in cake_enqueue()
1890 if (cake_ddst(q->flow_mode)) in cake_enqueue()
2071 if (cake_dsrc(q->flow_mode)) in cake_dequeue()
2074 if (cake_ddst(q->flow_mode)) in cake_dequeue()
2087 if (cake_dsrc(q->flow_mode)) in cake_dequeue()
2090 if (cake_ddst(q->flow_mode)) in cake_dequeue()
2123 if (cake_dsrc(q->flow_mode)) in cake_dequeue()
2126 if (cake_ddst(q->flow_mode)) in cake_dequeue()
2145 if (cake_dsrc(q->flow_mode)) in cake_dequeue()
2148 if (cake_ddst(q->flow_mode)) in cake_dequeue()
2583 q->flow_mode &= ~CAKE_FLOW_NAT_FLAG; in cake_change()
2584 q->flow_mode |= CAKE_FLOW_NAT_FLAG * in cake_change()
2607 q->flow_mode = ((q->flow_mode & CAKE_FLOW_NAT_FLAG) | in cake_change()
2708 q->flow_mode = CAKE_FLOW_TRIPLE; in cake_init()
2786 q->flow_mode & CAKE_FLOW_MASK)) in cake_dump()
2810 !!(q->flow_mode & CAKE_FLOW_NAT_FLAG))) in cake_dump()