Lines Matching refs:MACSEC_SA_ATTR_PN
1650 [MACSEC_SA_ATTR_PN] = NLA_POLICY_MIN_LEN(4),
1716 if (attrs[MACSEC_SA_ATTR_PN] && in validate_add_rxsa()
1717 nla_get_u64(attrs[MACSEC_SA_ATTR_PN]) == 0) in validate_add_rxsa()
1773 if (tb_sa[MACSEC_SA_ATTR_PN] && in macsec_add_rxsa()
1774 nla_len(tb_sa[MACSEC_SA_ATTR_PN]) != pn_len) { in macsec_add_rxsa()
1776 nla_len(tb_sa[MACSEC_SA_ATTR_PN]), pn_len); in macsec_add_rxsa()
1816 if (tb_sa[MACSEC_SA_ATTR_PN]) { in macsec_add_rxsa()
1818 rx_sa->next_pn = nla_get_u64(tb_sa[MACSEC_SA_ATTR_PN]); in macsec_add_rxsa()
1953 !attrs[MACSEC_SA_ATTR_PN] || in validate_add_txsa()
1961 if (nla_get_u64(attrs[MACSEC_SA_ATTR_PN]) == 0) in validate_add_txsa()
2017 if (nla_len(tb_sa[MACSEC_SA_ATTR_PN]) != pn_len) { in macsec_add_txsa()
2019 nla_len(tb_sa[MACSEC_SA_ATTR_PN]), pn_len); in macsec_add_txsa()
2060 tx_sa->next_pn = nla_get_u64(tb_sa[MACSEC_SA_ATTR_PN]); in macsec_add_txsa()
2316 if (attrs[MACSEC_SA_ATTR_PN] && nla_get_u64(attrs[MACSEC_SA_ATTR_PN]) == 0) in validate_upd_sa()
2359 if (tb_sa[MACSEC_SA_ATTR_PN]) { in macsec_upd_txsa()
2363 if (nla_len(tb_sa[MACSEC_SA_ATTR_PN]) != pn_len) { in macsec_upd_txsa()
2365 nla_len(tb_sa[MACSEC_SA_ATTR_PN]), pn_len); in macsec_upd_txsa()
2372 tx_sa->next_pn = nla_get_u64(tb_sa[MACSEC_SA_ATTR_PN]); in macsec_upd_txsa()
2410 if (tb_sa[MACSEC_SA_ATTR_PN]) { in macsec_upd_txsa()
2457 if (tb_sa[MACSEC_SA_ATTR_PN]) { in macsec_upd_rxsa()
2461 if (nla_len(tb_sa[MACSEC_SA_ATTR_PN]) != pn_len) { in macsec_upd_rxsa()
2463 nla_len(tb_sa[MACSEC_SA_ATTR_PN]), pn_len); in macsec_upd_rxsa()
2470 rx_sa->next_pn = nla_get_u64(tb_sa[MACSEC_SA_ATTR_PN]); in macsec_upd_rxsa()
2503 if (tb_sa[MACSEC_SA_ATTR_PN]) { in macsec_upd_rxsa()
3190 nla_put(skb, MACSEC_SA_ATTR_PN, pn_len, &pn) || in dump_secy()
3295 nla_put(skb, MACSEC_SA_ATTR_PN, pn_len, &pn) || in dump_secy()