Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/mlx5/
H A Dmacsec.c29 static void cleanup_macsec_device(struct mlx5_macsec_device *macsec_device) in cleanup_macsec_device() argument
31 if (!list_empty(&macsec_device->tx_rules_list) || in cleanup_macsec_device()
32 !list_empty(&macsec_device->rx_rules_list) || in cleanup_macsec_device()
33 !list_empty(&macsec_device->macsec_roce_gids)) in cleanup_macsec_device()
36 list_del(&macsec_device->macsec_devices_list_entry); in cleanup_macsec_device()
37 kfree(macsec_device); in cleanup_macsec_device()
43 struct mlx5_macsec_device *iter, *macsec_device = NULL; in get_macsec_device() local
47 macsec_device = iter; in get_macsec_device()
52 if (macsec_device) in get_macsec_device()
53 return macsec_device; in get_macsec_device()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dmacsec.c505 struct mlx5e_macsec_device *macsec_device; in mlx5e_macsec_add_txsa() local
515 macsec_device = mlx5e_macsec_get_macsec_device_context(macsec, ctx); in mlx5e_macsec_add_txsa()
516 if (!macsec_device) { in mlx5e_macsec_add_txsa()
522 if (macsec_device->tx_sa[assoc_num]) { in mlx5e_macsec_add_txsa()
549 macsec_device->tx_sa[assoc_num] = tx_sa; in mlx5e_macsec_add_txsa()
562 macsec_device->tx_sa[assoc_num] = NULL; in mlx5e_macsec_add_txsa()
577 struct mlx5e_macsec_device *macsec_device; in mlx5e_macsec_upd_txsa() local
588 macsec_device = mlx5e_macsec_get_macsec_device_context(macsec, ctx); in mlx5e_macsec_upd_txsa()
589 if (!macsec_device) { in mlx5e_macsec_upd_txsa()
595 tx_sa = macsec_device->tx_sa[assoc_num]; in mlx5e_macsec_upd_txsa()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c646 static bool macsec_fs_is_macsec_device_empty(struct mlx5_macsec_device *macsec_device) in macsec_fs_is_macsec_device_empty() argument
648 if (xa_empty(&macsec_device->tx_id_xa) && in macsec_fs_is_macsec_device_empty()
649 xa_empty(&macsec_device->rx_id_xa)) in macsec_fs_is_macsec_device_empty()
659 struct mlx5_macsec_device *iter, *macsec_device = NULL; in macsec_fs_id_del() local
665 macsec_device = iter; in macsec_fs_id_del()
669 WARN_ON(!macsec_device); in macsec_fs_id_del()
671 fs_id_xa = (is_tx) ? &macsec_device->tx_id_xa : in macsec_fs_id_del()
672 &macsec_device->rx_id_xa; in macsec_fs_id_del()
693 if (macsec_fs_is_macsec_device_empty(macsec_device)) { in macsec_fs_id_del()
694 list_del(&macsec_device->macsec_devices_list_entry); in macsec_fs_id_del()
[all …]