MACsec Intel FPGA System Design User Guide

ID 767516
Date 6/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.6.12. macsec_port_priority

macsec_port_priority

Synopsis
int macsec_port_priority(int port, int priority_mode)
Description

Sets the priority of controlled and uncontrolled ports.

Arguments

port—physical port.

priority_mode—
  • if priority_mode is 0, sets both equal priority.
  • if priority_mode is 1, sets controlled port has high priority.
  • if priority_mode is 2, sets uncontrolled port has high priority.
Returns

MACSEC_OK if successful.

MACSEC_ERR_INVALID_PORT if port is not valid.

MACSEC_ERR_INVALID_PRIORITY if priority is not invalid/supported.