Home
last modified time | relevance | path

Searched refs:fa_cookie (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.c138 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 …]
H A Dcore_acl_flex_actions.h59 const struct flow_action_cookie *fa_cookie,
H A Dspectrum_trap.c116 const struct flow_action_cookie *fa_cookie; in mlxsw_sp_rx_acl_drop_listener() local
135 fa_cookie = mlxsw_sp_acl_act_cookie_lookup(mlxsw_sp, cookie_index); in mlxsw_sp_rx_acl_drop_listener()
136 devlink_trap_report(devlink, skb, trap_ctx, in_devlink_port, fa_cookie); in mlxsw_sp_rx_acl_drop_listener()
H A Dspectrum_acl.c403 const struct flow_action_cookie *fa_cookie, in mlxsw_sp_acl_rulei_act_drop() argument
407 fa_cookie, extack); in mlxsw_sp_acl_rulei_act_drop()
H A Dspectrum.h1021 const struct flow_action_cookie *fa_cookie,
/linux/drivers/net/netdevsim/
H A Ddev.c142 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_read() local
148 fa_cookie = nsim_dev->fa_cookie; in nsim_dev_trap_fa_cookie_read()
149 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_read()
153 buf_len = fa_cookie->cookie_len * 2; in nsim_dev_trap_fa_cookie_read()
159 bin2hex(buf, fa_cookie->cookie, fa_cookie->cookie_len); in nsim_dev_trap_fa_cookie_read()
177 struct flow_action_cookie *fa_cookie; in nsim_dev_trap_fa_cookie_write() local
192 fa_cookie = kmalloc(sizeof(*fa_cookie) + cookie_len, in nsim_dev_trap_fa_cookie_write()
194 if (!fa_cookie) { in nsim_dev_trap_fa_cookie_write()
199 fa_cookie->cookie_len = cookie_len; in nsim_dev_trap_fa_cookie_write()
200 ret = hex2bin(fa_cookie->cookie, buf, cookie_len); in nsim_dev_trap_fa_cookie_write()
[all …]
H A Dnetdevsim.h321 struct flow_action_cookie *fa_cookie; member
/linux/net/core/
H A Ddrop_monitor.c748 return hw_metadata->fa_cookie ? in net_dm_flow_action_cookie_size()
749 nla_total_size(hw_metadata->fa_cookie->cookie_len) : 0; in net_dm_flow_action_cookie_size()
816 if (hw_metadata->fa_cookie && in net_dm_hw_packet_report_fill()
818 hw_metadata->fa_cookie->cookie_len, in net_dm_hw_packet_report_fill()
819 hw_metadata->fa_cookie->cookie)) in net_dm_hw_packet_report_fill()
854 const struct flow_action_cookie *fa_cookie; in net_dm_hw_metadata_copy() local
873 if (metadata->fa_cookie) { in net_dm_hw_metadata_copy()
874 size_t cookie_size = sizeof(*fa_cookie) + in net_dm_hw_metadata_copy()
875 metadata->fa_cookie->cookie_len; in net_dm_hw_metadata_copy()
877 fa_cookie = kmemdup(metadata->fa_cookie, cookie_size, in net_dm_hw_metadata_copy()
[all …]