MACsec Intel® FPGA System Design User Guide

ID 767516
Date 3/31/2024
Public
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.