Lines Matching refs:sci_present
259 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() argument
294 memset(&h->tci_an, 0, macsec_sectag_len(sci_present)); in macsec_fill_sectag()
297 if (sci_present) { in macsec_fill_sectag()
495 bool sci_present = macsec_skb_cb(skb)->has_sci; in macsec_msdu_len() local
497 return skb->len - macsec_hdr_len(sci_present) - secy->icv_len; in macsec_msdu_len()
593 bool sci_present; in macsec_encrypt() local
631 sci_present = macsec_send_sci(secy); in macsec_encrypt()
632 hh = skb_push(skb, macsec_extra_len(sci_present)); in macsec_encrypt()
641 macsec_fill_sectag(hh, secy, pn.lower, sci_present); in macsec_encrypt()
687 int len = skb->len - macsec_hdr_len(sci_present) - in macsec_encrypt()
690 aead_request_set_ad(req, macsec_hdr_len(sci_present)); in macsec_encrypt()
698 macsec_skb_cb(skb)->has_sci = sci_present; in macsec_encrypt()