Home
last modified time | relevance | path

Searched refs:fa_cookie (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Ddev.c107 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) in nsim_dev_trap_fa_cookie_write()
549 struct flow_action_cookie *fa_cookie = NULL; nsim_dev_trap_report() local
[all...]
H A Dnetdevsim.h209 struct flow_action_cookie *fa_cookie; member
210 spinlock_t fa_cookie_lock; /* protects fa_cookie */
/kernel/linux/linux-6.6/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 in mlxsw_afa_cookie_obj_cmpfn()
729 mlxsw_afa_cookie_create(struct mlxsw_afa *mlxsw_afa, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_create() argument
779 mlxsw_afa_cookie_get(struct mlxsw_afa *mlxsw_afa, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_get() argument
843 mlxsw_afa_cookie_ref_create(struct mlxsw_afa_block *block, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_ref_create() argument
1277 mlxsw_afa_block_append_drop_with_cookie(struct mlxsw_afa_block *block, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_afa_block_append_drop_with_cookie() argument
1313 mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_afa_block_append_drop() argument
[all...]
H A Dcore_acl_flex_actions.h59 const struct flow_action_cookie *fa_cookie,
H A Dspectrum_acl.c402 const struct flow_action_cookie *fa_cookie, in mlxsw_sp_acl_rulei_act_drop()
406 fa_cookie, extack); in mlxsw_sp_acl_rulei_act_drop()
400 mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_drop() argument
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.h1019 const struct flow_action_cookie *fa_cookie,
/kernel/linux/linux-5.10/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 in mlxsw_afa_cookie_obj_cmpfn()
729 mlxsw_afa_cookie_create(struct mlxsw_afa *mlxsw_afa, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_create() argument
778 mlxsw_afa_cookie_get(struct mlxsw_afa *mlxsw_afa, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_get() argument
842 mlxsw_afa_cookie_ref_create(struct mlxsw_afa_block *block, const struct flow_action_cookie *fa_cookie) mlxsw_afa_cookie_ref_create() argument
1276 mlxsw_afa_block_append_drop_with_cookie(struct mlxsw_afa_block *block, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_afa_block_append_drop_with_cookie() argument
1312 mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_afa_block_append_drop() argument
[all...]
H A Dcore_acl_flex_actions.h53 const struct flow_action_cookie *fa_cookie,
H A Dspectrum_acl.c390 const struct flow_action_cookie *fa_cookie, in mlxsw_sp_acl_rulei_act_drop()
394 fa_cookie, extack); in mlxsw_sp_acl_rulei_act_drop()
388 mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_drop() argument
H A Dspectrum_trap.c110 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()
H A Dspectrum.h896 const struct flow_action_cookie *fa_cookie,
/kernel/linux/linux-5.10/net/core/
H A Ddrop_monitor.c720 return hw_metadata->fa_cookie ? in net_dm_flow_action_cookie_size()
721 nla_total_size(hw_metadata->fa_cookie->cookie_len) : 0; in net_dm_flow_action_cookie_size()
788 if (hw_metadata->fa_cookie && in net_dm_hw_packet_report_fill()
790 hw_metadata->fa_cookie->cookie_len, in net_dm_hw_packet_report_fill()
791 hw_metadata->fa_cookie->cookie)) in net_dm_hw_packet_report_fill()
826 const struct flow_action_cookie *fa_cookie; in net_dm_hw_metadata_copy() local
845 if (metadata->fa_cookie) { in net_dm_hw_metadata_copy()
846 size_t cookie_size = sizeof(*fa_cookie) + in net_dm_hw_metadata_copy()
847 metadata->fa_cookie->cookie_len; in net_dm_hw_metadata_copy()
849 fa_cookie in net_dm_hw_metadata_copy()
[all...]
H A Ddevlink.c9852 const struct flow_action_cookie *fa_cookie) in devlink_trap_report_metadata_set()
9856 metadata->fa_cookie = fa_cookie; in devlink_trap_report_metadata_set()
9871 * @fa_cookie: Flow action cookie. Could be NULL.
9875 const struct flow_action_cookie *fa_cookie) in devlink_trap_report()
9887 in_devlink_port, fa_cookie); in devlink_trap_report()
9849 devlink_trap_report_metadata_set(struct devlink_trap_metadata *metadata, const struct devlink_trap_item *trap_item, struct devlink_port *in_devlink_port, const struct flow_action_cookie *fa_cookie) devlink_trap_report_metadata_set() argument
9873 devlink_trap_report(struct devlink *devlink, struct sk_buff *skb, void *trap_ctx, struct devlink_port *in_devlink_port, const struct flow_action_cookie *fa_cookie) devlink_trap_report() argument
/kernel/linux/linux-6.6/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) in nsim_dev_trap_fa_cookie_write()
793 struct flow_action_cookie *fa_cookie = NULL; nsim_dev_trap_report() local
[all...]
H A Dnetdevsim.h308 struct flow_action_cookie *fa_cookie; member
309 spinlock_t fa_cookie_lock; /* protects fa_cookie */
/kernel/linux/linux-6.6/net/core/
H A Ddrop_monitor.c745 return hw_metadata->fa_cookie ? in net_dm_flow_action_cookie_size()
746 nla_total_size(hw_metadata->fa_cookie->cookie_len) : 0; in net_dm_flow_action_cookie_size()
813 if (hw_metadata->fa_cookie && in net_dm_hw_packet_report_fill()
815 hw_metadata->fa_cookie->cookie_len, in net_dm_hw_packet_report_fill()
816 hw_metadata->fa_cookie->cookie)) in net_dm_hw_packet_report_fill()
851 const struct flow_action_cookie *fa_cookie; in net_dm_hw_metadata_copy() local
870 if (metadata->fa_cookie) { in net_dm_hw_metadata_copy()
871 size_t cookie_size = sizeof(*fa_cookie) + in net_dm_hw_metadata_copy()
872 metadata->fa_cookie->cookie_len; in net_dm_hw_metadata_copy()
874 fa_cookie in net_dm_hw_metadata_copy()
[all...]
/kernel/linux/linux-6.6/net/devlink/
H A Dtrap.c1471 const struct flow_action_cookie *fa_cookie) in devlink_trap_report_metadata_set()
1475 metadata->fa_cookie = fa_cookie; in devlink_trap_report_metadata_set()
1490 * @fa_cookie: Flow action cookie. Could be NULL.
1494 const struct flow_action_cookie *fa_cookie) in devlink_trap_report()
1506 in_devlink_port, fa_cookie); in devlink_trap_report()
1468 devlink_trap_report_metadata_set(struct devlink_trap_metadata *metadata, const struct devlink_trap_item *trap_item, struct devlink_port *in_devlink_port, const struct flow_action_cookie *fa_cookie) devlink_trap_report_metadata_set() argument
1492 devlink_trap_report(struct devlink *devlink, struct sk_buff *skb, void *trap_ctx, struct devlink_port *in_devlink_port, const struct flow_action_cookie *fa_cookie) devlink_trap_report() argument
/kernel/linux/linux-5.10/include/net/
H A Ddevlink.h666 * @fa_cookie: Flow action user cookie.
673 const struct flow_action_cookie *fa_cookie; member
1599 const struct flow_action_cookie *fa_cookie);
/kernel/linux/linux-6.6/include/net/
H A Ddevlink.h750 * @fa_cookie: Flow action user cookie.
760 const struct flow_action_cookie *fa_cookie; member
1950 const struct flow_action_cookie *fa_cookie);

Completed in 48 milliseconds