Home
last modified time | relevance | path

Searched refs:secy (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dmacsec.c54 netdev_dbg(ctx->netdev, "%s: adding new secy with sci %08llx at index %d\n", in nsim_macsec_add_secy()
55 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_add_secy()
58 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci; in nsim_macsec_add_secy()
69 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_secy()
71 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n", in nsim_macsec_upd_secy()
72 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_secy()
76 netdev_dbg(ctx->netdev, "%s: updating secy with sci %08llx at index %d\n", in nsim_macsec_upd_secy()
77 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_upd_secy()
87 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_secy()
89 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy tabl in nsim_macsec_del_secy()
107 struct nsim_secy *secy; nsim_macsec_add_rxsc() local
142 struct nsim_secy *secy; nsim_macsec_upd_rxsc() local
169 struct nsim_secy *secy; nsim_macsec_del_rxsc() local
200 struct nsim_secy *secy; nsim_macsec_add_rxsa() local
227 struct nsim_secy *secy; nsim_macsec_upd_rxsa() local
254 struct nsim_secy *secy; nsim_macsec_del_rxsa() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c97 struct macsec_secy *secy) in cn10k_mcs_get_txsc()
102 if (txsc->sw_secy == secy) in cn10k_mcs_get_txsc()
110 struct macsec_secy *secy, in cn10k_mcs_get_rxsc()
116 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc()
260 struct macsec_secy *secy, u8 hw_secy_id) in cn10k_mcs_write_rx_secy()
276 policy = FIELD_PREP(MCS_RX_SECY_PLCY_RW_MASK, secy->replay_window); in cn10k_mcs_write_rx_secy()
277 if (secy->replay_protect) in cn10k_mcs_write_rx_secy()
282 switch (secy->key_len) { in cn10k_mcs_write_rx_secy()
284 cipher = secy->xpn ? MCS_GCM_AES_XPN_128 : MCS_GCM_AES_128; in cn10k_mcs_write_rx_secy()
287 cipher = secy in cn10k_mcs_write_rx_secy()
96 cn10k_mcs_get_txsc(struct cn10k_mcs_cfg *cfg, struct macsec_secy *secy) cn10k_mcs_get_txsc() argument
109 cn10k_mcs_get_rxsc(struct cn10k_mcs_cfg *cfg, struct macsec_secy *secy, struct macsec_rx_sc *rx_sc) cn10k_mcs_get_rxsc() argument
259 cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) cn10k_mcs_write_rx_secy() argument
315 struct macsec_secy *secy = rxsc->sw_secy; cn10k_mcs_write_rx_flowid() local
384 cn10k_mcs_write_keys(struct otx2_nic *pfvf, struct macsec_secy *secy, struct mcs_sa_plcy_write_req *req, u8 *sak, u8 *salt, ssci_t ssci) cn10k_mcs_write_keys() argument
421 cn10k_mcs_write_rx_sa_plcy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_rxsc *rxsc, u8 assoc_num, bool sa_in_use) cn10k_mcs_write_rx_sa_plcy() argument
497 cn10k_mcs_write_tx_secy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_write_tx_secy() argument
579 cn10k_mcs_write_tx_flowid(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_write_tx_flowid() argument
625 cn10k_mcs_link_tx_sa2sc(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, u8 sa_num, bool sa_active) cn10k_mcs_link_tx_sa2sc() argument
659 cn10k_mcs_write_tx_sa_plcy(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, u8 assoc_num) cn10k_mcs_write_tx_sa_plcy() argument
1038 cn10k_mcs_secy_tx_cfg(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc, struct macsec_tx_sa *sw_tx_sa, u8 sa_num) cn10k_mcs_secy_tx_cfg() argument
1057 cn10k_mcs_secy_rx_cfg(struct otx2_nic *pfvf, struct macsec_secy *secy, u8 hw_secy_id) cn10k_mcs_secy_rx_cfg() argument
1090 cn10k_mcs_disable_rxscs(struct otx2_nic *pfvf, struct macsec_secy *secy, bool delete) cn10k_mcs_disable_rxscs() argument
1120 cn10k_mcs_sync_stats(struct otx2_nic *pfvf, struct macsec_secy *secy, struct cn10k_mcs_txsc *txsc) cn10k_mcs_sync_stats() argument
1176 struct macsec_secy *secy = ctx->secy; cn10k_mdo_open() local
1218 struct macsec_secy *secy = ctx->secy; cn10k_mdo_add_secy() local
1246 struct macsec_secy *secy = ctx->secy; cn10k_mdo_upd_secy() local
1301 struct macsec_secy *secy = ctx->secy; cn10k_mdo_add_txsa() local
1346 struct macsec_secy *secy = ctx->secy; cn10k_mdo_upd_txsa() local
1400 struct macsec_secy *secy = ctx->secy; cn10k_mdo_add_rxsc() local
1434 struct macsec_secy *secy = ctx->secy; cn10k_mdo_upd_rxsc() local
1473 struct macsec_secy *secy = ctx->secy; cn10k_mdo_add_rxsa() local
1516 struct macsec_secy *secy = ctx->secy; cn10k_mdo_upd_rxsa() local
1574 struct macsec_secy *secy = ctx->secy; cn10k_mdo_get_dev_stats() local
1653 struct macsec_secy *secy = ctx->secy; cn10k_mdo_get_rx_sc_stats() local
1744 struct macsec_secy *secy = NULL; cn10k_handle_mcs_event() local
[all...]
/kernel/linux/linux-6.6/drivers/net/
H A Dmacsec.c53 #define for_each_rxsc(secy, sc) \
54 for (sc = rcu_dereference_bh(secy->rx_sc); \
57 #define for_each_rxsc_rtnl(secy, sc) \
58 for (sc = rtnl_dereference(secy->rx_sc); \
89 * @secy: SecY config
98 struct macsec_secy secy; member
289 const struct macsec_secy *secy, u32 pn, in macsec_fill_sectag()
292 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag()
299 memcpy(&h->secure_channel_id, &secy->sci, in macsec_fill_sectag()
313 else if (secy in macsec_fill_sectag()
288 macsec_fill_sectag(struct macsec_eth_header *h, const struct macsec_secy *secy, u32 pn, bool sci_present) macsec_fill_sectag() argument
445 __macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) __macsec_pn_wrapped() argument
454 macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) macsec_pn_wrapped() argument
462 tx_sa_update_pn(struct macsec_tx_sa *tx_sa, struct macsec_secy *secy) tx_sa_update_pn() argument
494 struct macsec_secy *secy = &macsec->secy; macsec_msdu_len() local
589 struct macsec_secy *secy; macsec_encrypt() local
720 macsec_post_decrypt(struct sk_buff *skb, struct macsec_secy *secy, u32 pn) macsec_post_decrypt() argument
866 macsec_decrypt(struct sk_buff *skb, struct net_device *dev, struct macsec_rx_sa *rx_sa, sci_t sci, struct macsec_secy *secy) macsec_decrypt() argument
967 find_rx_sc(struct macsec_secy *secy, sci_t sci) find_rx_sc() argument
979 find_rx_sc_rtnl(struct macsec_secy *secy, sci_t sci) find_rx_sc_rtnl() argument
1089 struct macsec_secy *secy = NULL; macsec_handle_frame() local
1396 del_rx_sc(struct macsec_secy *secy, sci_t sci) del_rx_sc() argument
1421 struct macsec_secy *secy; create_rx_sc() local
1533 struct macsec_secy *secy; get_txsa_from_nl() local
1569 struct macsec_secy *secy; get_rxsc_from_nl() local
1724 struct macsec_secy *secy; macsec_add_rxsa() local
1878 struct macsec_secy *secy; macsec_add_rxsc() local
1968 struct macsec_secy *secy; macsec_add_txsa() local
2106 struct macsec_secy *secy; macsec_del_rxsa() local
2172 struct macsec_secy *secy; macsec_del_rxsc() local
2235 struct macsec_secy *secy; macsec_del_txsa() local
2320 struct macsec_secy *secy; macsec_upd_txsa() local
2414 struct macsec_secy *secy; macsec_upd_rxsa() local
2506 struct macsec_secy *secy; macsec_upd_rxsc() local
2572 struct macsec_secy *secy = &macsec->secy; macsec_is_configured() local
2981 nla_put_secy(struct macsec_secy *secy, struct sk_buff *skb) nla_put_secy() argument
3032 dump_secy(struct macsec_secy *secy, struct net_device *dev, struct sk_buff *skb, struct netlink_callback *cb) dump_secy() argument
3280 struct macsec_secy *secy; macsec_dump_txsc() local
3386 struct macsec_secy *secy = &macsec->secy; macsec_start_xmit() local
3736 struct macsec_secy *secy; macsec_changelink_common() local
3817 struct macsec_secy secy; macsec_changelink() local
3983 struct macsec_secy *secy = &macsec->secy; macsec_add_dev() local
4268 struct macsec_secy *secy; macsec_fill_info() local
[all...]
/kernel/linux/linux-5.10/drivers/net/
H A Dmacsec.c64 #define for_each_rxsc(secy, sc) \
65 for (sc = rcu_dereference_bh(secy->rx_sc); \
68 #define for_each_rxsc_rtnl(secy, sc) \
69 for (sc = rtnl_dereference(secy->rx_sc); \
100 * @secy: SecY config
107 struct macsec_secy secy; member
258 static bool send_sci(const struct macsec_secy *secy) in send_sci() argument
260 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in send_sci()
263 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in send_sci()
306 const struct macsec_secy *secy, u3 in macsec_fill_sectag()
305 macsec_fill_sectag(struct macsec_eth_header *h, const struct macsec_secy *secy, u32 pn, bool sci_present) macsec_fill_sectag() argument
467 __macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) __macsec_pn_wrapped() argument
476 macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) macsec_pn_wrapped() argument
484 tx_sa_update_pn(struct macsec_tx_sa *tx_sa, struct macsec_secy *secy) tx_sa_update_pn() argument
516 struct macsec_secy *secy = &macsec->secy; macsec_msdu_len() local
617 struct macsec_secy *secy; macsec_encrypt() local
748 macsec_post_decrypt(struct sk_buff *skb, struct macsec_secy *secy, u32 pn) macsec_post_decrypt() argument
899 macsec_decrypt(struct sk_buff *skb, struct net_device *dev, struct macsec_rx_sa *rx_sa, sci_t sci, struct macsec_secy *secy) macsec_decrypt() argument
1000 find_rx_sc(struct macsec_secy *secy, sci_t sci) find_rx_sc() argument
1012 find_rx_sc_rtnl(struct macsec_secy *secy, sci_t sci) find_rx_sc_rtnl() argument
1106 struct macsec_secy *secy = NULL; macsec_handle_frame() local
1413 del_rx_sc(struct macsec_secy *secy, sci_t sci) del_rx_sc() argument
1438 struct macsec_secy *secy; create_rx_sc() local
1550 struct macsec_secy *secy; get_txsa_from_nl() local
1586 struct macsec_secy *secy; get_rxsc_from_nl() local
1755 struct macsec_secy *secy; macsec_add_rxsa() local
1909 struct macsec_secy *secy; macsec_add_rxsc() local
1999 struct macsec_secy *secy; macsec_add_txsa() local
2137 struct macsec_secy *secy; macsec_del_rxsa() local
2203 struct macsec_secy *secy; macsec_del_rxsc() local
2266 struct macsec_secy *secy; macsec_del_txsa() local
2351 struct macsec_secy *secy; macsec_upd_txsa() local
2445 struct macsec_secy *secy; macsec_upd_rxsa() local
2537 struct macsec_secy *secy; macsec_upd_rxsc() local
2603 struct macsec_secy *secy = &macsec->secy; macsec_is_configured() local
3018 nla_put_secy(struct macsec_secy *secy, struct sk_buff *skb) nla_put_secy() argument
3069 dump_secy(struct macsec_secy *secy, struct net_device *dev, struct sk_buff *skb, struct netlink_callback *cb) dump_secy() argument
3317 struct macsec_secy *secy; macsec_dump_txsc() local
3422 struct macsec_secy *secy = &macsec->secy; macsec_start_xmit() local
3761 struct macsec_secy *secy; macsec_changelink_common() local
3840 struct macsec_secy secy; macsec_changelink() local
3991 struct macsec_secy *secy = &macsec->secy; macsec_add_dev() local
4255 struct macsec_secy *secy = &macsec_priv(dev)->secy; macsec_fill_info() local
[all...]
/kernel/linux/linux-5.10/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()
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 in aq_set_txsc()
49 aq_get_txsc_idx_from_secy(struct aq_macsec_cfg *macsec_cfg, const struct macsec_secy *secy) aq_get_txsc_idx_from_secy() argument
450 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_secy() local
487 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_secy() local
557 aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_tx_sa *tx_sa, const unsigned char *key, const unsigned char an) aq_update_txsa() argument
596 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_txsa() local
626 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_txsa() local
716 const struct macsec_secy *secy = aq_rxsc->sw_secy; aq_set_rxsc() local
891 aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_rx_sa *rx_sa, const unsigned char *key, const unsigned char an) aq_update_rxsa() argument
944 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_rxsa() local
975 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_rxsa() local
1099 const struct macsec_secy *secy; aq_mdo_get_tx_sa_stats() local
1231 const struct macsec_secy *secy = aq_txsc->sw_secy; apply_txsc_cfg() local
1259 const struct macsec_secy *secy = aq_rxsc->sw_secy; apply_rxsc_cfg() local
1284 aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy, enum aq_clear_type clear_type) aq_clear_secy() argument
1313 aq_apply_secy_cfg(struct aq_nic_s *nic, const struct macsec_secy *secy) aq_apply_secy_cfg() argument
1400 const struct macsec_secy *secy; aq_check_txsa_expiration() local
[all...]
/kernel/linux/linux-6.6/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()
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 in aq_set_txsc()
49 aq_get_txsc_idx_from_secy(struct aq_macsec_cfg *macsec_cfg, const struct macsec_secy *secy) aq_get_txsc_idx_from_secy() argument
444 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_secy() local
478 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_secy() local
542 aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_tx_sa *tx_sa, const unsigned char *key, const unsigned char an) aq_update_txsa() argument
581 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_txsa() local
608 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_txsa() local
692 const struct macsec_secy *secy = aq_rxsc->sw_secy; aq_set_rxsc() local
858 aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_rx_sa *rx_sa, const unsigned char *key, const unsigned char an) aq_update_rxsa() argument
911 const struct macsec_secy *secy = ctx->secy; aq_mdo_add_rxsa() local
939 const struct macsec_secy *secy = ctx->secy; aq_mdo_upd_rxsa() local
1051 const struct macsec_secy *secy; aq_mdo_get_tx_sa_stats() local
1174 const struct macsec_secy *secy = aq_txsc->sw_secy; apply_txsc_cfg() local
1202 const struct macsec_secy *secy = aq_rxsc->sw_secy; apply_rxsc_cfg() local
1227 aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy, enum aq_clear_type clear_type) aq_clear_secy() argument
1256 aq_apply_secy_cfg(struct aq_nic_s *nic, const struct macsec_secy *secy) aq_apply_secy_cfg() argument
1343 const struct macsec_secy *secy; aq_check_txsa_expiration() local
[all...]
/kernel/linux/linux-5.10/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(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 in vsc8584_macsec_transformation()
787 struct macsec_secy *secy = ctx->secy; vsc8584_macsec_add_secy() local
[all...]
H A Dmscc.h377 struct macsec_secy *secy; member
/kernel/linux/linux-6.6/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 in vsc8584_macsec_transformation()
767 struct macsec_secy *secy = ctx->secy; vsc8584_macsec_add_secy() local
[all...]
H A Dmscc.h387 struct macsec_secy *secy; member
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dmacsec.c382 obj_attrs.replay_window = ctx->secy->replay_window; in mlx5e_macsec_init_sa()
383 obj_attrs.replay_protect = ctx->secy->replay_protect; in mlx5e_macsec_init_sa()
429 mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, ctx->secy->netdev, *fs_id); in macsec_rx_sa_active_update()
443 const struct macsec_secy *secy = ctx->secy; in mlx5e_macsec_secy_features_validate() local
445 if (secy->validate_frames != MACSEC_VALIDATE_STRICT) { in mlx5e_macsec_secy_features_validate()
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 in mlx5e_macsec_get_macsec_device_context()
504 const struct macsec_secy *secy = ctx->secy; mlx5e_macsec_add_txsa() local
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dmacsec.h258 struct macsec_secy *secy; member
308 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
309 static inline bool macsec_send_sci(const struct macsec_secy *secy) in macsec_send_sci() argument
311 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_send_sci()
314 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in macsec_send_sci()
/kernel/linux/linux-5.10/include/net/
H A Dmacsec.h240 struct macsec_secy *secy; member
292 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs.h102 u8 secy; member
113 u16 *flowid2secy_map; /* bitmap flowid mapped to secy*/
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.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()
512 /* secy */ in mcs_install_flowid_bypass_entry()
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()
529 /* Map flowid to secy */ in mcs_install_flowid_bypass_entry()
530 map.secy in mcs_install_flowid_bypass_entry()
[all...]
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()
431 seq_puts(filp, "\n MCS TX secy stats\n"); in rvu_dbg_mcs_tx_secy_stats_display()
437 seq_printf(filp, "secy%d: Ctrl bcast pkts: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
439 seq_printf(filp, "secy%d: Ctrl Mcast pkts: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
441 seq_printf(filp, "secy%d: Ctrl ucast pkts: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
443 seq_printf(filp, "secy%d: Ctrl octets: %lld\n", secy_id, stats.ctl_octet_cnt); in rvu_dbg_mcs_tx_secy_stats_display()
444 seq_printf(filp, "secy%d: Unctrl bcast cnt: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
446 seq_printf(filp, "secy%d: Unctrl mcast pkts: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
448 seq_printf(filp, "secy%d: Unctrl ucast pkts: %lld\n", secy_id, in rvu_dbg_mcs_tx_secy_stats_display()
450 seq_printf(filp, "secy in rvu_dbg_mcs_tx_secy_stats_display()
[all...]
/kernel/linux/linux-6.6/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 in macsec_fs_rx_add_rule()
[all...]

Completed in 28 milliseconds