Home
last modified time | relevance | path

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

/linux/drivers/net/netdevsim/
H A Dmacsec.c102 struct nsim_secy *secy; in nsim_macsec_add_rxsc() local
117 if (!secy->nsim_rxsc[idx].used) in nsim_macsec_add_rxsc()
127 secy->nsim_rxsc[idx].used = true; in nsim_macsec_add_rxsc()
129 secy->nsim_rxsc_count++; in nsim_macsec_add_rxsc()
137 struct nsim_secy *secy; in nsim_macsec_upd_rxsc() local
164 struct nsim_secy *secy; in nsim_macsec_del_rxsc() local
186 memset(&secy->nsim_rxsc[idx], 0, sizeof(secy->nsim_rxsc[idx])); in nsim_macsec_del_rxsc()
187 secy->nsim_rxsc_count--; in nsim_macsec_del_rxsc()
195 struct nsim_secy *secy; in nsim_macsec_add_rxsa() local
222 struct nsim_secy *secy; in nsim_macsec_upd_rxsa() local
[all …]
/linux/drivers/net/
H A Dmacsec.c599 secy = &macsec->secy; in macsec_encrypt()
1864 ctx.secy = secy; in macsec_add_rxsa()
1950 ctx.secy = secy; in macsec_add_rxsc()
2107 ctx.secy = secy; in macsec_add_txsa()
2178 ctx.secy = secy; in macsec_del_rxsa()
2244 ctx.secy = secy; in macsec_del_rxsc()
2303 ctx.secy = secy; in macsec_del_txsa()
2416 ctx.secy = secy; in macsec_upd_txsa()
2510 ctx.secy = secy; in macsec_upd_rxsa()
2581 ctx.secy = secy; in macsec_upd_rxsc()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c1176 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_open() local
1218 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_add_secy() local
1246 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_upd_secy() local
1301 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_add_txsa() local
1346 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_upd_txsa() local
1400 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_add_rxsc() local
1434 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_upd_rxsc() local
1473 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_add_rxsa() local
1516 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_upd_rxsa() local
1574 struct macsec_secy *secy = ctx->secy; in cn10k_mdo_get_dev_stats() local
[all …]
/linux/drivers/net/phy/
H A Dnxp-c45-tja11xx-macsec.c192 struct macsec_secy *secy; member
378 if (pos->secy->sci == sci) in nxp_c45_find_secy()
506 if (ctx->secy->xpn) { in nxp_c45_sa_set_key()
658 if (pos->secy == ctx->secy) in nxp_c45_mac_addr_free()
710 if (phy_secy->secy->xpn) in nxp_c45_tx_sc_update()
852 if (phy_secy->secy->xpn) in nxp_c45_rx_sc_update()
1003 phy_secy->secy = ctx->secy; in nxp_c45_mdo_add_secy()
1692 struct nxp_c45_secy *secy; in nxp_c45_handle_macsec_interrupt() local
1709 if (IS_ERR(secy)) { in nxp_c45_handle_macsec_interrupt()
1714 encoding_sa = secy->secy->tx_sc.encoding_sa; in nxp_c45_handle_macsec_interrupt()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c54 if (unlikely(!secy)) in aq_get_txsc_idx_from_secy()
346 if (secy->tx_sc.scb) in aq_set_txsc()
355 if (!(secy->icv_len == 16 && !secy->tx_sc.encrypt)) in aq_set_txsc()
444 const struct macsec_secy *secy = ctx->secy; in aq_mdo_add_secy() local
449 if (secy->xpn) in aq_mdo_add_secy()
478 const struct macsec_secy *secy = ctx->secy; in aq_mdo_upd_secy() local
581 const struct macsec_secy *secy = ctx->secy; in aq_mdo_add_txsa() local
594 secy->key_len); in aq_mdo_add_txsa()
608 const struct macsec_secy *secy = ctx->secy; in aq_mdo_upd_txsa() local
911 const struct macsec_secy *secy = ctx->secy; in aq_mdo_add_rxsa() local
[all …]
/linux/drivers/net/phy/mscc/
H A Dmscc_macsec.c429 if (priv->secy->replay_protect) in vsc8584_macsec_flow()
436 if (priv->secy->protect_frames) in vsc8584_macsec_flow()
438 if (priv->secy->tx_sc.encrypt) in vsc8584_macsec_flow()
440 if (priv->secy->tx_sc.send_sci) in vsc8584_macsec_flow()
534 switch (priv->secy->key_len) { in vsc8584_macsec_transformation()
583 priv->secy->replay_window); in vsc8584_macsec_transformation()
767 struct macsec_secy *secy = ctx->secy; in vsc8584_macsec_add_secy() local
769 if (priv->secy) in vsc8584_macsec_add_secy()
772 priv->secy = secy; in vsc8584_macsec_add_secy()
793 priv->secy = NULL; in vsc8584_macsec_del_secy()
[all …]
H A Dmscc.h387 struct macsec_secy *secy; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dmacsec.c443 const struct macsec_secy *secy = ctx->secy; in mlx5e_macsec_secy_features_validate() local
451 if (secy->icv_len != MACSEC_DEFAULT_ICV_LEN) { in mlx5e_macsec_secy_features_validate()
457 if (!secy->protect_frames) { in mlx5e_macsec_secy_features_validate()
463 if (!ctx->secy->tx_sc.encrypt) { in mlx5e_macsec_secy_features_validate()
480 if (iter->netdev == ctx->secy->netdev) in mlx5e_macsec_get_macsec_device_context()
504 const struct macsec_secy *secy = ctx->secy; in mlx5e_macsec_add_txsa() local
536 tx_sa->sci = secy->sci; in mlx5e_macsec_add_txsa()
539 if (secy->xpn) in mlx5e_macsec_add_txsa()
550 if (!secy->operational) in mlx5e_macsec_add_txsa()
921 if (ctx->secy->xpn) in mlx5e_macsec_add_rxsa()
[all …]
/linux/include/net/
H A Dmacsec.h275 struct macsec_secy *secy; member
359 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
360 static inline bool macsec_send_sci(const struct macsec_secy *secy) in macsec_send_sci() argument
362 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_send_sci()
365 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in macsec_send_sci()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs.c310 for (id = 0; id < map->secy.max; id++) { in mcs_clear_all_stats()
317 for (id = 0; id < map->secy.max; id++) { in mcs_clear_all_stats()
433 val = (map->secy & 0x7F) | (map->ctrl_pkt & 0x1) << 8; in cn10kb_mcs_flowid_secy_map()
514 __set_bit(secy_id, mcs->rx.secy.bmap); in mcs_install_flowid_bypass_entry()
515 __set_bit(secy_id, mcs->tx.secy.bmap); in mcs_install_flowid_bypass_entry()
530 map.secy = secy_id; in mcs_install_flowid_bypass_entry()
732 for (id = 0; id < map->secy.max; id++) { in mcs_free_all_rsrc()
735 mcs_free_rsrc(&map->secy, map->secy2pf_map, in mcs_free_all_rsrc()
741 for (id = 0; id < map->secy.max; id++) { in mcs_free_all_rsrc()
1114 res->secy.max = hw->secy_entries - MCS_RSRC_RSVD_CNT; in mcs_alloc_struct_mem()
[all …]
H A Dmcs.h102 u8 secy; member
116 struct rsrc_bmap secy; member
191 void mcs_rx_sc_cam_write(struct mcs *mcs, u64 sci, u64 secy, int sc_id);
H A Dmcs_rvu_if.c615 map.secy = req->secy_id; in rvu_mbox_handler_mcs_flowid_entry_write()
659 rc = mcs_free_rsrc(&map->secy, map->secy2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
720 rsrc_id = mcs_alloc_rsrc(&map->secy, map->secy2pf_map, pcifunc); in rvu_mbox_handler_mcs_alloc_resources()
H A Dmcs_cnf10kb.c77 val = (map->secy & 0x3F) | (map->ctrl_pkt & 0x1) << 6; in cnf10kb_mcs_flowid_secy_map()
H A Drvu_debugfs.c430 map = &mcs->tx.secy; in rvu_dbg_mcs_tx_secy_stats_display()
473 map = &mcs->rx.secy; in rvu_dbg_mcs_rx_secy_stats_display()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c614 const struct macsec_secy *secy = ctx->secy; in macsec_fs_tx_create_sectag_header() local
615 bool sci_present = macsec_send_sci(secy); in macsec_fs_tx_create_sectag_header()
619 tx_sc = &secy->tx_sc; in macsec_fs_tx_create_sectag_header()
624 memcpy(&sectag.sci, &secy->sci, in macsec_fs_tx_create_sectag_header()
636 else if (secy->icv_len != MACSEC_DEFAULT_ICV_LEN) in macsec_fs_tx_create_sectag_header()
879 err = macsec_fs_id_add(&macsec_fs->macsec_devices_list, *fs_id, macsec_ctx->secy->netdev, in macsec_fs_tx_add_rule()
889 macsec_fs_tx_del_rule(macsec_fs, tx_rule, macsec_ctx->secy->netdev); in macsec_fs_tx_add_rule()
1828 err = macsec_fs_id_add(&macsec_fs->macsec_devices_list, fs_id, macsec_ctx->secy->netdev, in macsec_fs_rx_add_rule()
1839 macsec_fs_rx_del_rule(macsec_fs, rx_rule, macsec_ctx->secy->netdev, fs_id); in macsec_fs_rx_add_rule()
2088 .macdev = macsec_ctx->secy->netdev, in mlx5_macsec_fs_add_rule()