/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 26 struct mlx5e_macsec *macsec; member 52 struct mlx5e_macsec *macsec; member 313 static void mlx5e_macsec_cleanup_sa_fs(struct mlx5e_macsec *macsec, in mlx5e_macsec_cleanup_sa_fs() argument 323 mlx5_macsec_fs_del_rule(macsec->mdev->macsec_fs, sa->macsec_rule, action, netdev, in mlx5e_macsec_cleanup_sa_fs() 328 static void mlx5e_macsec_cleanup_sa(struct mlx5e_macsec *macsec, in mlx5e_macsec_cleanup_sa() argument 332 mlx5e_macsec_cleanup_sa_fs(macsec, sa, is_tx, netdev, fs_id); in mlx5e_macsec_cleanup_sa() 333 mlx5e_macsec_destroy_object(macsec->mdev, sa->macsec_obj_id); in mlx5e_macsec_cleanup_sa() 369 struct mlx5e_macsec *macsec = priv->macsec; in mlx5e_macsec_init_sa() local 378 obj_attrs.aso_pdn = macsec->aso.pdn; in mlx5e_macsec_init_sa() 425 struct mlx5e_macsec *macsec = priv->macsec; in macsec_rx_sa_active_update() local [all …]
|
H A D | macsec_stats.c | 25 if (!priv->macsec) in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 40 if (!priv->macsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() 55 if (!priv->macsec) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
|
H A D | macsec.h | 20 bool mlx5e_macsec_handle_tx_skb(struct mlx5e_macsec *macsec, struct sk_buff *skb); 21 void mlx5e_macsec_tx_build_eseg(struct mlx5e_macsec *macsec,
|
/linux/drivers/net/ |
H A D | macsec.c | 316 static bool macsec_is_offloaded(struct macsec_dev *macsec) in macsec_is_offloaded() argument 318 if (macsec->offload == MACSEC_OFFLOAD_MAC || in macsec_is_offloaded() 319 macsec->offload == MACSEC_OFFLOAD_PHY) in macsec_is_offloaded() 327 struct macsec_dev *macsec) in macsec_check_offload() argument 329 if (!macsec || !macsec->real_dev) in macsec_check_offload() 333 return macsec->real_dev->phydev && in macsec_check_offload() 334 macsec->real_dev->phydev->macsec_ops; in macsec_check_offload() 336 return macsec->real_dev->features & NETIF_F_HW_MACSEC && in macsec_check_offload() 337 macsec->real_dev->macsec_ops; in macsec_check_offload() 343 struct macsec_dev *macsec, in __macsec_get_ops() argument [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | macsec.c | 131 struct mlx5_macsec *macsec = container_of(nb, struct mlx5_macsec, blocking_events_nb); in macsec_event() local 133 mutex_lock(&macsec->lock); in macsec_event() 136 handle_macsec_gids(&macsec->macsec_devices_list, data); in macsec_event() 139 del_sa_roce_rule(&macsec->macsec_devices_list, data); in macsec_event() 142 mutex_unlock(&macsec->lock); in macsec_event() 145 mutex_unlock(&macsec->lock); in macsec_event() 156 dev->macsec.blocking_events_nb.notifier_call = macsec_event; in mlx5r_macsec_event_register() 158 &dev->macsec.blocking_events_nb); in mlx5r_macsec_event_register() 169 &dev->macsec.blocking_events_nb); in mlx5r_macsec_event_unregister() 193 INIT_LIST_HEAD(&dev->macsec.macsec_devices_list); in mlx5r_macsec_init_gids_and_devlist() [all …]
|
H A D | Makefile | 32 mlx5_ib-$(CONFIG_MLX5_MACSEC) += macsec.o
|
/linux/drivers/net/phy/ |
H A D | nxp-c45-tja11xx-macsec.c | 657 list_for_each_entry_safe(pos, tmp, &priv->macsec->secy_list, list) { in nxp_c45_mac_addr_free() 840 test_bit(phy_secy->secy_id, priv->macsec->secy_bitmap)) in nxp_c45_rx_sc_update() 931 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci); in nxp_c45_mdo_dev_open() 942 any_bit_set = find_first_bit(priv->macsec->secy_bitmap, TX_SC_MAX); in nxp_c45_mdo_dev_open() 946 set_bit(phy_secy->secy_id, priv->macsec->secy_bitmap); in nxp_c45_mdo_dev_open() 958 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci); in nxp_c45_mdo_dev_stop() 969 clear_bit(phy_secy->secy_id, priv->macsec->secy_bitmap); in nxp_c45_mdo_dev_stop() 970 any_bit_set = find_first_bit(priv->macsec->secy_bitmap, TX_SC_MAX); in nxp_c45_mdo_dev_stop() 991 if (nxp_c45_is_rx_sc0_impl(&priv->macsec->secy_list)) in nxp_c45_mdo_add_secy() 994 idx = find_first_zero_bit(priv->macsec->tx_sc_bitmap, TX_SC_MAX); in nxp_c45_mdo_add_secy() [all …]
|
/linux/drivers/net/netdevsim/ |
H A D | Makefile | 22 netdevsim-objs += macsec.o
|
H A D | netdevsim.h | 131 struct nsim_macsec macsec; member
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | Makefile | 32 macsec/macsec_api.o
|
/linux/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 540 run_cmd_grep "^Usage: ip macsec" ip macsec help 545 run_cmd ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on 550 run_cmd ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012 551 run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" 552 …run_cmd ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 01234… 553 run_cmd ip macsec show
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en.h | 922 struct mlx5e_macsec *macsec; member
|
/linux/ |
H A D | MAINTAINERS | 16640 F: drivers/net/macsec.c 16641 F: include/net/macsec.h 16643 K: macsec
|