MACsec Intel® FPGA System Design User Guide

ID 767516
Date 3/31/2024
Public
Document Table of Contents

6.6.3. macsec_get_sa_attributes

macsec_get_sa_attributes

Synopsis
int macsec_get_sa_attr(struct macsec_info *info, uint32_t port, uint32_t sc, uint32_t sa, enum macsec_sa_attr attr, void *value)
Description

Retrieves a MACsec SA attribute.

Retrieves attribute for a given (sc,sa) pair for the specified port.

Arguments

info—points to the macsec_info structure.

port—logical port value.

sc—secure channel value.

sa—secure association value.

attr—MACsec SA attribute.

Returns

MACSEC_OK if successful.

MACSEC_ERR_INVALID_ARG if value, macsec_attr or info is NULL or SC/SA invalid.

MACSEC_ERR_INVALID_PORT if port not associated with any port.

MACSEC_ERR_INVALID_ATTR if the attribute is unknown or the key or salt attribute is tried to be read.

MACSEC_ERR_READ if fails to read the csr register.