Lines Matching defs:hash
35 #define LB_TX_HASHTABLE_SIZE 256 /* hash is a char */
90 #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \
91 (lb_priv)->ex->tx_hash_to_port_mapping[hash].port
93 #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \
94 (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info
117 /* Basic tx selection based solely by hash */
119 unsigned char hash)
121 int port_index = team_num_to_port_index(team, hash);
128 unsigned char hash)
133 port = rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash));
136 /* If no valid port in the table, fall back to simple hash */
137 return lb_hash_select_tx_port(team, hash);
147 .name = "hash",
202 unsigned char hash)
210 hash_stats = &pcpu_stats->hash_stats[hash];
222 unsigned char hash;
225 hash = lb_get_skb_hash(lb_priv, skb);
227 port = select_tx_port_func(team, hash);
232 lb_update_tx_stats(tx_bytes, lb_priv, get_lb_port_priv(port), hash);
361 unsigned char hash = info->array_index;
363 LB_HTPM_OPT_INST_INFO_BY_HASH(lb_priv, hash) = info;
371 unsigned char hash = ctx->info->array_index;
373 port = LB_HTPM_PORT_BY_HASH(lb_priv, hash);
382 unsigned char hash = ctx->info->array_index;
387 rcu_assign_pointer(LB_HTPM_PORT_BY_HASH(lb_priv, hash),
399 unsigned char hash = info->array_index;
401 lb_priv->ex->stats.info[hash].opt_inst_info = info;
407 unsigned char hash = ctx->info->array_index;
409 ctx->data.bin_val.ptr = &lb_priv->ex->stats.info[hash].stats;
596 func = lb_select_tx_port_get_func("hash");