MACsec Intel® FPGA System Design User Guide

ID 767516
Date 10/02/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.8. macsec_set_port_configuration

macsec_set_port_configuration

Synopsis
int macsec_set_port_config(int port, int set_mode)
Description

Sets the port to Cut Through mode OR Store and Forward mode.

Port with traffics that required integrity protection only packet needs to be configured as Store and Forward.

Arguments

port—physical port.

set_mode—sets the port to Cut Through mode OR Store and Forward mode.
  • 0—Cut Through mode
  • 1—Store and Forward mode
Returns

MACSEC_OK if successful.

MACSEC_ERR_INVALID_PORT if port is not valid.

MACSEC_ERR_INVALID_MODE if mode is not valid.