Home
last modified time | relevance | path

Searched refs:sci_present (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/
H A Dmacsec.c250 if (sci_present) in macsec_frame_sci()
264 static unsigned int macsec_hdr_len(bool sci_present) in macsec_hdr_len() argument
266 return macsec_sectag_len(sci_present) + ETH_HLEN; in macsec_hdr_len()
277 bool sci_present) in macsec_fill_sectag() argument
284 if (sci_present) { in macsec_fill_sectag()
482 bool sci_present = macsec_skb_cb(skb)->has_sci; in macsec_msdu_len() local
580 bool sci_present; in macsec_encrypt() local
618 sci_present = macsec_send_sci(secy); in macsec_encrypt()
619 hh = skb_push(skb, macsec_extra_len(sci_present)); in macsec_encrypt()
674 int len = skb->len - macsec_hdr_len(sci_present) - in macsec_encrypt()
[all …]
/openbmc/linux/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() argument
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()