Searched refs:fa_cookie (Results 1 – 7 of 7) sorted by relevance
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 138 struct flow_action_cookie fa_cookie; member 141 static u32 mlxsw_afa_cookie_hash(const struct flow_action_cookie *fa_cookie, in mlxsw_afa_cookie_hash() argument 144 return jhash2((u32 *) fa_cookie->cookie, in mlxsw_afa_cookie_hash() 145 fa_cookie->cookie_len / sizeof(u32), seed); in mlxsw_afa_cookie_hash() 150 const struct flow_action_cookie *fa_cookie = data; in mlxsw_afa_cookie_key_hashfn() local 152 return mlxsw_afa_cookie_hash(fa_cookie, seed); in mlxsw_afa_cookie_key_hashfn() 159 return mlxsw_afa_cookie_hash(&cookie->fa_cookie, seed); in mlxsw_afa_cookie_obj_hashfn() 165 const struct flow_action_cookie *fa_cookie = arg->key; in mlxsw_afa_cookie_obj_cmpfn() local 168 if (cookie->fa_cookie.cookie_len == fa_cookie->cookie_len) in mlxsw_afa_cookie_obj_cmpfn() 169 return memcmp(cookie->fa_cookie.cookie, fa_cookie->cookie, in mlxsw_afa_cookie_obj_cmpfn() [all …]
|
D | core_acl_flex_actions.h | 53 const struct flow_action_cookie *fa_cookie,
|
D | spectrum_trap.c | 110 const struct flow_action_cookie *fa_cookie; in mlxsw_sp_rx_acl_drop_listener() local 129 fa_cookie = mlxsw_sp_acl_act_cookie_lookup(mlxsw_sp, cookie_index); in mlxsw_sp_rx_acl_drop_listener() 130 devlink_trap_report(devlink, skb, trap_ctx, in_devlink_port, fa_cookie); in mlxsw_sp_rx_acl_drop_listener()
|
D | spectrum_acl.c | 390 const struct flow_action_cookie *fa_cookie, in mlxsw_sp_acl_rulei_act_drop() argument 394 fa_cookie, extack); in mlxsw_sp_acl_rulei_act_drop()
|
D | spectrum.h | 896 const struct flow_action_cookie *fa_cookie,
|
/drivers/net/netdevsim/ |
D | dev.c | 107 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_read() local 113 fa_cookie = nsim_dev->fa_cookie; in nsim_dev_trap_fa_cookie_read() 114 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_read() 118 buf_len = fa_cookie->cookie_len * 2; in nsim_dev_trap_fa_cookie_read() 124 bin2hex(buf, fa_cookie->cookie, fa_cookie->cookie_len); in nsim_dev_trap_fa_cookie_read() 142 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_write() local 157 fa_cookie = kmalloc(sizeof(*fa_cookie) + cookie_len, in nsim_dev_trap_fa_cookie_write() 159 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_write() 164 fa_cookie->cookie_len = cookie_len; in nsim_dev_trap_fa_cookie_write() 165 ret = hex2bin(fa_cookie->cookie, buf, cookie_len); in nsim_dev_trap_fa_cookie_write() [all …]
|
D | netdevsim.h | 209 struct flow_action_cookie *fa_cookie; member
|