Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/
Dmacsec.c64 #define for_each_rxsc(secy, sc) \ argument
65 for (sc = rcu_dereference_bh(secy->rx_sc); \
68 #define for_each_rxsc_rtnl(secy, sc) \ argument
69 for (sc = rtnl_dereference(secy->rx_sc); \
107 struct macsec_secy secy; member
244 static bool send_sci(const struct macsec_secy *secy) in send_sci() argument
246 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in send_sci()
249 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in send_sci()
292 const struct macsec_secy *secy, u32 pn, in macsec_fill_sectag() argument
295 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag()
[all …]
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
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()
299 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open()
325 const struct macsec_secy *secy = aq_txsc->sw_secy; in aq_set_txsc() local
331 aq_ether_addr_to_mac(tx_class_rec.mac_sa, secy->netdev->dev_addr); in aq_set_txsc()
333 put_unaligned_be64((__force u64)secy->sci, tx_class_rec.sci); in aq_set_txsc()
349 sc_rec.protect = secy->protect_frames; in aq_set_txsc()
[all …]
/Linux-v5.10/drivers/net/phy/mscc/
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(flow->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 …]
Dmscc.h372 struct macsec_secy *secy; member
/Linux-v5.10/include/net/
Dmacsec.h240 struct macsec_secy *secy; member
291 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);