Lines Matching refs:ce_mask
63 uint32_t ce_mask; member
110 info->ce_mask = MACSEC_ATTR_CIPHER_SUITE | MACSEC_ATTR_ICV_LEN; in macsec_alloc()
134 info->ce_mask |= MACSEC_ATTR_SCI; in macsec_parse()
139 info->ce_mask |= MACSEC_ATTR_PROTECT; in macsec_parse()
144 info->ce_mask |= MACSEC_ATTR_CIPHER_SUITE; in macsec_parse()
149 info->ce_mask |= MACSEC_ATTR_ICV_LEN; in macsec_parse()
154 info->ce_mask |= MACSEC_ATTR_ENCODING_SA; in macsec_parse()
159 info->ce_mask |= MACSEC_ATTR_VALIDATION; in macsec_parse()
164 info->ce_mask |= MACSEC_ATTR_ENCRYPT; in macsec_parse()
169 info->ce_mask |= MACSEC_ATTR_INC_SCI; in macsec_parse()
174 info->ce_mask |= MACSEC_ATTR_ES; in macsec_parse()
179 info->ce_mask |= MACSEC_ATTR_SCB; in macsec_parse()
184 info->ce_mask |= MACSEC_ATTR_REPLAY_PROTECT; in macsec_parse()
189 info->ce_mask |= MACSEC_ATTR_WINDOW; in macsec_parse()
307 if (info->ce_mask & MACSEC_ATTR_SCI) in macsec_put_attrs()
309 else if (info->ce_mask & MACSEC_ATTR_PORT) in macsec_put_attrs()
312 if ((info->ce_mask & MACSEC_ATTR_ENCRYPT)) in macsec_put_attrs()
320 if ((info->ce_mask & MACSEC_ATTR_INC_SCI)) in macsec_put_attrs()
323 if ((info->ce_mask & MACSEC_ATTR_ES)) in macsec_put_attrs()
326 if ((info->ce_mask & MACSEC_ATTR_SCB)) in macsec_put_attrs()
329 if ((info->ce_mask & MACSEC_ATTR_PROTECT)) in macsec_put_attrs()
332 if ((info->ce_mask & MACSEC_ATTR_REPLAY_PROTECT)) { in macsec_put_attrs()
333 if (info->replay_protect && !(info->ce_mask & MACSEC_ATTR_WINDOW)) in macsec_put_attrs()
340 if ((info->ce_mask & MACSEC_ATTR_VALIDATION)) in macsec_put_attrs()
343 if ((info->ce_mask & MACSEC_ATTR_ENCODING_SA)) in macsec_put_attrs()
360 uint32_t attrs = flags & LOOSE_COMPARISON ? b->ce_mask : ~0; in macsec_compare()
364 if (a->ce_mask & MACSEC_ATTR_SCI && b->ce_mask & MACSEC_ATTR_SCI) in macsec_compare()
366 else if (a->ce_mask & MACSEC_ATTR_PORT && b->ce_mask & MACSEC_ATTR_PORT) in macsec_compare()
369 if (a->ce_mask & MACSEC_ATTR_CIPHER_SUITE && b->ce_mask & MACSEC_ATTR_CIPHER_SUITE) { in macsec_compare()
374 if (a->ce_mask & MACSEC_ATTR_REPLAY_PROTECT && b->ce_mask & MACSEC_ATTR_REPLAY_PROTECT) { in macsec_compare()
455 info->ce_mask |= MACSEC_ATTR_SCI; in rtnl_link_macsec_set_sci()
474 if (!(info->ce_mask & MACSEC_ATTR_SCI)) in rtnl_link_macsec_get_sci()
497 info->ce_mask |= MACSEC_ATTR_PORT; in rtnl_link_macsec_set_port()
515 if (!(info->ce_mask & MACSEC_ATTR_PORT)) in rtnl_link_macsec_get_port()
531 info->ce_mask |= MACSEC_ATTR_CIPHER_SUITE; in rtnl_link_macsec_set_cipher_suite()
542 if (!(info->ce_mask & MACSEC_ATTR_CIPHER_SUITE)) in rtnl_link_macsec_get_cipher_suite()
561 info->ce_mask |= MACSEC_ATTR_ICV_LEN; in rtnl_link_macsec_set_icv_len()
572 if (!(info->ce_mask & MACSEC_ATTR_ICV_LEN)) in rtnl_link_macsec_get_icv_len()
591 info->ce_mask |= MACSEC_ATTR_PROTECT; in rtnl_link_macsec_set_protect()
602 if (!(info->ce_mask & MACSEC_ATTR_PROTECT)) in rtnl_link_macsec_get_protect()
621 info->ce_mask |= MACSEC_ATTR_ENCRYPT; in rtnl_link_macsec_set_encrypt()
632 if (!(info->ce_mask & MACSEC_ATTR_ENCRYPT)) in rtnl_link_macsec_get_encrypt()
651 info->ce_mask |= MACSEC_ATTR_ENCODING_SA; in rtnl_link_macsec_set_encoding_sa()
662 if (!(info->ce_mask & MACSEC_ATTR_ENCODING_SA)) in rtnl_link_macsec_get_encoding_sa()
681 info->ce_mask |= MACSEC_ATTR_VALIDATION; in rtnl_link_macsec_set_validation_type()
692 if (!(info->ce_mask & MACSEC_ATTR_VALIDATION)) in rtnl_link_macsec_get_validation_type()
711 info->ce_mask |= MACSEC_ATTR_REPLAY_PROTECT; in rtnl_link_macsec_set_replay_protect()
722 if (!(info->ce_mask & MACSEC_ATTR_REPLAY_PROTECT)) in rtnl_link_macsec_get_replay_protect()
738 info->ce_mask |= MACSEC_ATTR_WINDOW; in rtnl_link_macsec_set_window()
749 if (!(info->ce_mask & MACSEC_ATTR_WINDOW)) in rtnl_link_macsec_get_window()
768 info->ce_mask |= MACSEC_ATTR_INC_SCI; in rtnl_link_macsec_set_send_sci()
779 if (!(info->ce_mask & MACSEC_ATTR_INC_SCI)) in rtnl_link_macsec_get_send_sci()
798 info->ce_mask |= MACSEC_ATTR_ES; in rtnl_link_macsec_set_end_station()
809 if (!(info->ce_mask & MACSEC_ATTR_ES)) in rtnl_link_macsec_get_end_station()
828 info->ce_mask |= MACSEC_ATTR_SCB; in rtnl_link_macsec_set_scb()
839 if (!(info->ce_mask & MACSEC_ATTR_SCB)) in rtnl_link_macsec_get_scb()