Home
last modified time | relevance | path

Searched refs:sci_present (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/
H A Dmacsec.c276 static sci_t macsec_frame_sci(struct macsec_eth_header *hdr, bool sci_present) in macsec_frame_sci() argument
280 if (sci_present) in macsec_frame_sci()
289 static unsigned int macsec_sectag_len(bool sci_present) in macsec_sectag_len() argument
291 return MACSEC_TAG_LEN + (sci_present ? MACSEC_SCI_LEN : 0); in macsec_sectag_len()
294 static unsigned int macsec_hdr_len(bool sci_present) in macsec_hdr_len() argument
296 return macsec_sectag_len(sci_present) + ETH_HLEN; in macsec_hdr_len()
299 static unsigned int macsec_extra_len(bool sci_present) in macsec_extra_len() argument
301 return macsec_sectag_len(sci_present) + sizeof(__be16); in macsec_extra_len()
307 bool sci_present) in macsec_fill_sectag()
311 memset(&h->tci_an, 0, macsec_sectag_len(sci_present)); 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
517 bool sci_present = macsec_skb_cb(skb)->has_sci; macsec_msdu_len() local
621 bool sci_present; macsec_encrypt() local
[all...]
/kernel/linux/linux-6.6/drivers/net/
H A Dmacsec.c259 static sci_t macsec_frame_sci(struct macsec_eth_header *hdr, bool sci_present) in macsec_frame_sci() argument
263 if (sci_present) in macsec_frame_sci()
272 static unsigned int macsec_sectag_len(bool sci_present) in macsec_sectag_len() argument
274 return MACSEC_TAG_LEN + (sci_present ? MACSEC_SCI_LEN : 0); in macsec_sectag_len()
277 static unsigned int macsec_hdr_len(bool sci_present) in macsec_hdr_len() argument
279 return macsec_sectag_len(sci_present) + ETH_HLEN; in macsec_hdr_len()
282 static unsigned int macsec_extra_len(bool sci_present) in macsec_extra_len() argument
284 return macsec_sectag_len(sci_present) + sizeof(__be16); in macsec_extra_len()
290 bool sci_present) in macsec_fill_sectag()
294 memset(&h->tci_an, 0, macsec_sectag_len(sci_present)); 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
495 bool sci_present = macsec_skb_cb(skb)->has_sci; macsec_msdu_len() local
593 bool sci_present; macsec_encrypt() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c615 bool sci_present = macsec_send_sci(secy); in macsec_fs_tx_create_sectag_header() local
622 if (sci_present) { in macsec_fs_tx_create_sectag_header()
641 *reformat_size = MLX5_MACSEC_TAG_LEN + (sci_present ? MACSEC_SCI_LEN : 0); in macsec_fs_tx_create_sectag_header()
1683 bool sci_present) in macsec_fs_rx_setup_fte()
1685 u8 tci_an = (sci_present << MLX5_MACSEC_SECTAG_TCI_SC_FIELD_OFFSET) | attrs->assoc_num; in macsec_fs_rx_setup_fte()
1703 if (sci_present) { in macsec_fs_rx_setup_fte()
1680 macsec_fs_rx_setup_fte(struct mlx5_flow_spec *spec, struct mlx5_flow_act *flow_act, struct mlx5_macsec_rule_attrs *attrs, bool sci_present) macsec_fs_rx_setup_fte() argument

Completed in 10 milliseconds