Lines Matching defs:hash
37 #define LB_TX_HASHTABLE_SIZE 256 /* hash is a char */
92 #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \
93 (lb_priv)->ex->tx_hash_to_port_mapping[hash].port
95 #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \
96 (lb_priv)->ex->tx_hash_to_port_mapping[hash].opt_inst_info
119 /* Basic tx selection based solely by hash */
123 unsigned char hash)
125 int port_index = team_num_to_port_index(team, hash);
134 unsigned char hash)
138 port = rcu_dereference_bh(LB_HTPM_PORT_BY_HASH(lb_priv, hash));
141 /* If no valid port in the table, fall back to simple hash */
142 return lb_hash_select_tx_port(team, lb_priv, skb, hash);
152 .name = "hash",
207 unsigned char hash)
215 hash_stats = &pcpu_stats->hash_stats[hash];
227 unsigned char hash;
230 hash = lb_get_skb_hash(lb_priv, skb);
232 port = select_tx_port_func(team, lb_priv, skb, hash);
237 lb_update_tx_stats(tx_bytes, lb_priv, get_lb_port_priv(port), hash);
368 unsigned char hash = info->array_index;
370 LB_HTPM_OPT_INST_INFO_BY_HASH(lb_priv, hash) = info;
379 unsigned char hash = ctx->info->array_index;
381 port = LB_HTPM_PORT_BY_HASH(lb_priv, hash);
391 unsigned char hash = ctx->info->array_index;
396 rcu_assign_pointer(LB_HTPM_PORT_BY_HASH(lb_priv, hash),
408 unsigned char hash = info->array_index;
410 lb_priv->ex->stats.info[hash].opt_inst_info = info;
417 unsigned char hash = ctx->info->array_index;
419 ctx->data.bin_val.ptr = &lb_priv->ex->stats.info[hash].stats;
610 func = lb_select_tx_port_get_func("hash");