Lines Matching refs:key
18 struct mod_hdr_key key; member
27 static u32 hash_mod_hdr_info(struct mod_hdr_key *key) in hash_mod_hdr_info() argument
29 return jhash(key->actions, in hash_mod_hdr_info()
30 key->num_actions * MLX5_MH_ACT_SZ, 0); in hash_mod_hdr_info()
55 struct mod_hdr_key *key, in mod_hdr_get() argument
61 if (!cmp_mod_hdr_info(&mh->key, key)) { in mod_hdr_get()
79 struct mod_hdr_key key; in mlx5e_mod_hdr_attach() local
85 key.actions = mod_hdr_acts->actions; in mlx5e_mod_hdr_attach()
86 key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
88 hash_key = hash_mod_hdr_info(&key); in mlx5e_mod_hdr_attach()
91 mh = mod_hdr_get(tbl, &key, hash_key); in mlx5e_mod_hdr_attach()
109 mh->key.actions = (void *)mh + sizeof(*mh); in mlx5e_mod_hdr_attach()
110 memcpy(mh->key.actions, key.actions, actions_size); in mlx5e_mod_hdr_attach()
111 mh->key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
119 mh->key.num_actions, in mlx5e_mod_hdr_attach()
120 mh->key.actions); in mlx5e_mod_hdr_attach()