MACsec Intel® FPGA System Design User Guide

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

6.6.4. macsec_set_attributes

macsec_set_attributes

Synopsis
int macsec_set_attr (struct macsec_info *info, uint32_t port, enum macsec_attr attr, const void *value)
Description

Sets a global MACsec attribute.

Gets the MACsec attribute values for belonging to the port.

Arguments

info—points to the macsec_info structure.

port—MACsec instance.

attr—MACsec attribute to set the value.

value—points to the value to set for the attribute.

Returns

MACSEC_OK if successful.

MACSEC_ERR_INVALID_ARG if value, macsec_attr or info is NULL.

MACSEC_ERR_INVALID_PORT if the port is not initialized or is greater than the current MACsec instances supported.

MACSEC_ERR_INVALID_ATTR if attribute is invalid.

MACSEC_ERR_INVALID_VALUE if value is out of range.

MACSEC_ERR_WRITE if fails to write.