Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c4171 u16 *old_entry, *vhca_map_entry, vhca_id; in mlx5_esw_vport_vhca_id_set() local
4181 vhca_map_entry = kmalloc(sizeof(*vhca_map_entry), GFP_KERNEL); in mlx5_esw_vport_vhca_id_set()
4182 if (!vhca_map_entry) in mlx5_esw_vport_vhca_id_set()
4185 *vhca_map_entry = vport_num; in mlx5_esw_vport_vhca_id_set()
4186 old_entry = xa_store(&esw->offloads.vhca_map, vhca_id, vhca_map_entry, GFP_KERNEL); in mlx5_esw_vport_vhca_id_set()
4188 kfree(vhca_map_entry); in mlx5_esw_vport_vhca_id_set()
4197 u16 *vhca_map_entry, vhca_id; in mlx5_esw_vport_vhca_id_clear() local
4205 vhca_map_entry = xa_erase(&esw->offloads.vhca_map, vhca_id); in mlx5_esw_vport_vhca_id_clear()
4206 kfree(vhca_map_entry); in mlx5_esw_vport_vhca_id_clear()