Home
last modified time | relevance | path

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

/linux/drivers/net/
H A Dmacsec.c54 #define for_each_rxsc(secy, sc) \ argument
55 for (sc = rcu_dereference_bh(secy->rx_sc); \
58 #define for_each_rxsc_rtnl(secy, sc) \ argument
59 for (sc = rtnl_dereference(secy->rx_sc); \
101 struct macsec_secy secy; member
250 static sci_t macsec_active_sci(struct macsec_secy *secy) in macsec_active_sci() argument
252 struct macsec_rx_sc *rx_sc = rcu_dereference_bh(secy->rx_sc); in macsec_active_sci()
279 return macsec_active_sci(&macsec->secy); in macsec_frame_sci()
304 const struct macsec_secy *secy, u32 pn, in macsec_fill_sectag() argument
307 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c97 struct macsec_secy *secy) in cn10k_mcs_get_txsc() argument
102 if (txsc->sw_secy == secy) in cn10k_mcs_get_txsc()
110 struct macsec_secy *secy, in cn10k_mcs_get_rxsc() argument
116 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc()
258 struct macsec_secy *secy, u8 hw_secy_id) in cn10k_mcs_write_rx_secy() argument
274 policy = FIELD_PREP(MCS_RX_SECY_PLCY_RW_MASK, secy->replay_window); in cn10k_mcs_write_rx_secy()
275 if (secy->replay_protect) in cn10k_mcs_write_rx_secy()
280 switch (secy->key_len) { in cn10k_mcs_write_rx_secy()
282 cipher = secy->xpn ? MCS_GCM_AES_XPN_128 : MCS_GCM_AES_128; in cn10k_mcs_write_rx_secy()
285 cipher = secy->xpn ? MCS_GCM_AES_XPN_256 : MCS_GCM_AES_256; in cn10k_mcs_write_rx_secy()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c32 static int aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy,
36 const struct macsec_secy *secy);
50 const struct macsec_secy *secy) in aq_get_txsc_idx_from_secy() argument
54 if (unlikely(!secy)) in aq_get_txsc_idx_from_secy()
58 if (macsec_cfg->aq_txsc[i].sw_secy == secy) in aq_get_txsc_idx_from_secy()
296 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open()
319 const struct macsec_secy *secy = aq_txsc->sw_secy; in aq_set_txsc() local
325 aq_ether_addr_to_mac(tx_class_rec.mac_sa, secy->netdev->dev_addr); in aq_set_txsc()
327 put_unaligned_be64((__force u64)secy->sci, tx_class_rec.sci); in aq_set_txsc()
343 sc_rec.protect = secy->protect_frames; in aq_set_txsc()
[all …]
/linux/drivers/net/phy/mscc/
H A Dmscc_macsec.c429 if (priv->secy->replay_protect) in vsc8584_macsec_flow()
431 if (priv->secy->validate_frames == MACSEC_VALIDATE_STRICT) in vsc8584_macsec_flow()
433 else if (priv->secy->validate_frames == MACSEC_VALIDATE_CHECK) 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()
530 ret = vsc8584_macsec_derive_key(key, priv->secy->key_len, hkey); in vsc8584_macsec_transformation()
534 switch (priv->secy->key_len) { in vsc8584_macsec_transformation()
546 (CONTROL_TYPE_EGRESS | CONTROL_AN(priv->secy->tx_sc.encoding_sa)) : in vsc8584_macsec_transformation()
563 for (i = 0; i < priv->secy->key_len / sizeof(u32); i++) in vsc8584_macsec_transformation()
[all …]
/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()
406 void mcs_rx_sc_cam_write(struct mcs *mcs, u64 sci, u64 secy, int sc_id) in mcs_rx_sc_cam_write() argument
409 mcs_reg_write(mcs, MCSX_CPM_RX_SLAVE_SC_CAMX(1, sc_id), secy); in mcs_rx_sc_cam_write()
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()
[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_cnf10kb.c77 val = (map->secy & 0x3F) | (map->ctrl_pkt & 0x1) << 6; in cnf10kb_mcs_flowid_secy_map()