Searched refs:sci_present (Results 1 – 2 of 2) sorted by relevance
262 static sci_t macsec_frame_sci(struct macsec_eth_header *hdr, bool sci_present, in macsec_frame_sci() argument269 if (sci_present) { in macsec_frame_sci()287 static unsigned int macsec_sectag_len(bool sci_present) in macsec_sectag_len() argument289 return MACSEC_TAG_LEN + (sci_present ? MACSEC_SCI_LEN : 0); in macsec_sectag_len()292 static unsigned int macsec_hdr_len(bool sci_present) in macsec_hdr_len() argument294 return macsec_sectag_len(sci_present) + ETH_HLEN; in macsec_hdr_len()297 static unsigned int macsec_extra_len(bool sci_present) in macsec_extra_len() argument299 return macsec_sectag_len(sci_present) + sizeof(__be16); in macsec_extra_len()305 bool sci_present) in macsec_fill_sectag() argument309 memset(&h->tci_an, 0, macsec_sectag_len(sci_present)); in macsec_fill_sectag()[all …]
611 bool sci_present = macsec_send_sci(secy); in macsec_fs_tx_create_sectag_header() local618 if (sci_present) { in macsec_fs_tx_create_sectag_header()637 *reformat_size = MLX5_MACSEC_TAG_LEN + (sci_present ? MACSEC_SCI_LEN : 0); in macsec_fs_tx_create_sectag_header()1679 bool sci_present) in macsec_fs_rx_setup_fte() argument1681 u8 tci_an = (sci_present << MLX5_MACSEC_SECTAG_TCI_SC_FIELD_OFFSET) | attrs->assoc_num; in macsec_fs_rx_setup_fte()1699 if (sci_present) { in macsec_fs_rx_setup_fte()