intrte_pmd_ixgbe_ping_vf(uint16_tport,uint16_tvf)
Notify VF when PF link status changes.
Parametersport The port identifier of the Ethernet device.
vf VF id.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if vf invalid.
intrte_pmd_ixgbe_set_vf_mac_addr(uint16_tport,uint16_tvf,structrte_ether_addr*mac_addr)
Set the VF MAC address.
Parametersport The port identifier of the Ethernet device.
vf VF id.
mac_addr VF MAC address.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if vf or mac_addr is invalid.
intrte_pmd_ixgbe_set_vf_vlan_anti_spoof(uint16_tport,uint16_tvf,uint8_ton)
Enable/Disable VF VLAN anti spoofing.
Parametersport The port identifier of the Ethernet device.
vf VF on which to set VLAN anti spoofing.
on 1 - Enable VFs VLAN anti spoofing. 0 - Disable VFs VLAN anti spoofing.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_mac_anti_spoof(uint16_tport,uint16_tvf,uint8_ton)
Enable/Disable VF MAC anti spoofing.
Parametersport The port identifier of the Ethernet device.
vf VF on which to set MAC anti spoofing.
on 1 - Enable VFs MAC anti spoofing. 0 - Disable VFs MAC anti spoofing.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_vlan_insert(uint16_tport,uint16_tvf,uint16_tvlan_id)
Enable/Disable vf vlan insert
Parametersport The port identifier of the Ethernet device.
vf ID specifying VF.
vlan_id 0 - Disable VF's vlan insert. n - Enable; n is inserted as the vlan id.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_tx_loopback(uint16_tport,uint8_ton)
Enable/Disable tx loopback
Parametersport The port identifier of the Ethernet device.
on 1 - Enable tx loopback. 0 - Disable tx loopback.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_all_queues_drop_en(uint16_tport,uint8_ton)
set all queues drop enable bit
Parametersport The port identifier of the Ethernet device.
on 1 - set the queue drop enable bit for all pools. 0 - reset the queue drop enable bit for all
pools.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_split_drop_en(uint16_tport,uint16_tvf,uint8_ton)
set drop enable bit in the VF split rx control register
Parametersport The port identifier of the Ethernet device.
vf ID specifying VF.
on 1 - set the drop enable bit in the split rx control register. 0 - reset the drop enable bit in the
split rx control register.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_vlan_stripq(uint16_tport,uint16_tvf,uint8_ton)
Enable/Disable vf vlan strip for all queues in a pool
Parametersport The port identifier of the Ethernet device.
vf ID specifying VF.
on 1 - Enable VF's vlan strip on RX queues. 0 - Disable VF's vlan strip on RX queues.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support this feature.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_macsec_enable(uint16_tport,uint8_ten,uint8_trp)
Enable MACsec offload.
Parametersport The port identifier of the Ethernet device.
en 1 - Enable encryption (encrypt and add integrity signature). 0 - Disable encryption (only add
integrity signature).
rp 1 - Enable replay protection. 0 - Disable replay protection.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
intrte_pmd_ixgbe_macsec_disable(uint16_tport)
Disable MACsec offload.
Parametersport The port identifier of the Ethernet device.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
intrte_pmd_ixgbe_macsec_config_txsc(uint16_tport,uint8_t*mac)
Configure Tx SC (Secure Connection).
Parametersport The port identifier of the Ethernet device.
mac The MAC address on the local side.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
intrte_pmd_ixgbe_macsec_config_rxsc(uint16_tport,uint8_t*mac,uint16_tpi)
Configure Rx SC (Secure Connection).
Parametersport The port identifier of the Ethernet device.
mac The MAC address on the remote side.
pi The PI (port identifier) on the remote side.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
intrte_pmd_ixgbe_macsec_select_txsa(uint16_tport,uint8_tidx,uint8_tan,uint32_tpn,uint8_t*key)
Enable Tx SA (Secure Association).
Parametersport The port identifier of the Ethernet device.
idx The SA to be enabled (0 or 1).
an The association number on the local side.
pn The packet number on the local side.
key The key on the local side.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_macsec_select_rxsa(uint16_tport,uint8_tidx,uint8_tan,uint32_tpn,uint8_t*key)
Enable Rx SA (Secure Association).
Parametersport The port identifier of the Ethernet device.
idx The SA to be enabled (0 or 1)
an The association number on the remote side.
pn The packet number on the remote side.
key The key on the remote side.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_rxmode(uint16_tport,uint16_tvf,uint16_trx_mask,uint8_ton)
Set RX L2 Filtering mode of a VF of an Ethernet device.
Parametersport The port identifier of the Ethernet device.
vf VF id.
rx_mask The RX mode mask, which is one or more of accepting Untagged Packets, packets that match the
PFUTA table, Broadcast and Multicast Promiscuous. RTE_ETH_VMDQ_ACCEPT_UNTAG,
RTE_ETH_VMDQ_ACCEPT_HASH_UC, RTE_ETH_VMDQ_ACCEPT_BROADCAST and RTE_ETH_VMDQ_ACCEPT_MULTICAST will be
used in rx_mode.
on 1 - Enable a VF RX mode. 0 - Disable a VF RX mode.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port_id invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_rx(uint16_tport,uint16_tvf,uint8_ton)
Enable or disable a VF traffic receive of an Ethernet device.
Parametersport The port identifier of the Ethernet device.
vf VF id.
on 1 - Enable a VF traffic receive. 0 - Disable a VF traffic receive.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port_id invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_tx(uint16_tport,uint16_tvf,uint8_ton)
Enable or disable a VF traffic transmit of the Ethernet device.
Parametersport The port identifier of the Ethernet device.
vf VF id.
on 1 - Enable a VF traffic transmit. 0 - Disable a VF traffic transmit.
Returns
• (0) if successful.
• (-ENODEV) if port_id invalid.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_vlan_filter(uint16_tport,uint16_tvlan,uint64_tvf_mask,uint8_tvlan_on)
Enable/Disable hardware VF VLAN filtering by an Ethernet device of received VLAN packets tagged with a
given VLAN Tag Identifier.
Parametersport The port identifier of the Ethernet device.
vlan The VLAN Tag Identifier whose filtering must be enabled or disabled.
vf_mask Bitmap listing which VFs participate in the VLAN filtering.
vlan_on 1 - Enable VFs VLAN filtering. 0 - Disable VFs VLAN filtering.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port_id invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_vf_rate_limit(uint16_tport,uint16_tvf,uint32_ttx_rate,uint64_tq_msk)
Set the rate limitation for a vf on an Ethernet device.
Parametersport The port identifier of the Ethernet device.
vf VF id.
tx_rate The tx rate allocated from the total link speed for this VF id.
q_msk The queue mask which need to set the rate.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support this feature.
• (-ENODEV) if port_id invalid.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_set_tc_bw_alloc(uint16_tport,uint8_ttc_num,uint8_t*bw_weight)
Set all the TCs' bandwidth weight.
The bw_weight means the percentage occupied by the TC. It can be taken as the relative min bandwidth
setting.
Parametersport The port identifier of the Ethernet device.
tc_num Number of TCs.
bw_weight An array of relative bandwidth weight for all the TCs. The summary of the bw_weight should
be 100.
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-EINVAL) if bad parameter.
• (-ENOTSUP) not supported by firmware.
intrte_pmd_ixgbe_bypass_init(uint16_tport)
Initialize bypass logic. This function needs to be called before executing any other bypass API.
Parametersport The port identifier of the Ethernet device.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_state_show(uint16_tport,uint32_t*state)
Return bypass state.
Parametersport The port identifier of the Ethernet device.
state The return bypass state.
• (1) Normal mode
• (2) Bypass mode
• (3) Isolate mode
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_state_set(uint16_tport,uint32_t*new_state)
Set bypass state
Parametersport The port identifier of the Ethernet device.
new_state The current bypass state.
• (1) Normal mode
• (2) Bypass mode
• (3) Isolate mode
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_event_show(uint16_tport,uint32_tevent,uint32_t*state)
Return bypass state when given event occurs.
Parametersport The port identifier of the Ethernet device.
event The bypass event
• (1) Main power on (power button is pushed)
• (2) Auxiliary power on (power supply is being plugged)
• (3) Main power off (system shutdown and power supply is left plugged in)
• (4) Auxiliary power off (power supply is being unplugged)
• (5) Display or set the watchdog timer
state The bypass state when given event occurred.
• (1) Normal mode
• (2) Bypass mode
• (3) Isolate mode
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_event_store(uint16_tport,uint32_tevent,uint32_tstate)
Set bypass state when given event occurs.
Parametersport The port identifier of the Ethernet device.
event The bypass event
• (1) Main power on (power button is pushed)
• (2) Auxiliary power on (power supply is being plugged)
• (3) Main power off (system shutdown and power supply is left plugged in)
• (4) Auxiliary power off (power supply is being unplugged)
• (5) Display or set the watchdog timer
state The assigned state when given event occurs.
• (1) Normal mode
• (2) Bypass mode
• (3) Isolate mode
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_wd_timeout_store(uint16_tport,uint32_ttimeout)
Set bypass watchdog timeout count.
Parametersport The port identifier of the Ethernet device.
timeout The timeout to be set.
• (0) 0 seconds (timer is off)
• (1) 1.5 seconds
• (2) 2 seconds
• (3) 3 seconds
• (4) 4 seconds
• (5) 8 seconds
• (6) 16 seconds
• (7) 32 seconds
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_ver_show(uint16_tport,uint32_t*ver)
Get bypass firmware version.
Parametersport The port identifier of the Ethernet device.
ver The firmware version
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_wd_timeout_show(uint16_tport,uint32_t*wd_timeout)
Return bypass watchdog timeout in seconds
Parametersport The port identifier of the Ethernet device.
wd_timeout The return watchdog timeout. '0' represents timer expired
• (0) 0 seconds (timer is off)
• (1) 1.5 seconds
• (2) 2 seconds
• (3) 3 seconds
• (4) 4 seconds
• (5) 8 seconds
• (6) 16 seconds
• (7) 32 seconds
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_bypass_wd_reset(uint16_tport)
Reset bypass watchdog timer
Parametersport The port identifier of the Ethernet device.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-EINVAL) if bad parameter.
intrte_pmd_ixgbe_mdio_lock(uint16_tport)
Acquire swfw semaphore lock for MDIO access
Parametersport The port identifier of the Ethernet device.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port invalid.
• (IXGBE_ERR_SWFW_SYNC) If sw/fw semaphore acquisition failed
intrte_pmd_ixgbe_mdio_unlock(uint16_tport)
Release swfw semaphore lock used for MDIO access
Parametersport The port identifier of the Ethernet device.
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port invalid.
intrte_pmd_ixgbe_mdio_unlocked_read(uint16_tport,uint32_treg_addr,uint32_tdev_type,uint16_t*phy_data)
Read PHY register using MDIO without MDIO lock The lock must be taken separately before calling this API
Parametersport The port identifier of the Ethernet device.
reg_addr 32 bit PHY Register
dev_type Used to define device base address
phy_data Pointer for reading PHY register data
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port invalid.
• (IXGBE_ERR_PHY) If PHY read command failed
intrte_pmd_ixgbe_mdio_unlocked_write(uint16_tport,uint32_treg_addr,uint32_tdev_type,uint16_tphy_data)
Write data to PHY register using without MDIO lock The lock must be taken separately before calling this
API
Parametersport The port identifier of the Ethernet device.
reg_addr 32 bit PHY Register
dev_type Used to define device base address
phy_data Data to write to PHY register
Returns
• (0) if successful.
• (-ENOTSUP) if hardware doesn't support.
• (-ENODEV) if port invalid.
• (IXGBE_ERR_PHY) If PHY read command failed
intrte_pmd_ixgbe_upd_fctrl_sbp(uint16_tport,intenable)Parametersport The port identifier of the Ethernet device.
enable 0 to disable and nonzero to enable 'SBP' bit in FCTRL register to receive all packets
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if hardware doesn't support this feature.
__rte_experimentalintrte_pmd_ixgbe_get_fdir_info(uint16_tport,structrte_eth_fdir_info*fdir_info)
Get port fdir info
Parametersport The port identifier of the Ethernet device.
fdir_info The fdir info of the port
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if operation not supported.
__rte_experimentalintrte_pmd_ixgbe_get_fdir_stats(uint16_tport,structrte_eth_fdir_stats*fdir_stats)
Get port fdir status
Parametersport The port identifier of the Ethernet device.
fdir_stats The fdir status of the port
Returns
• (0) if successful.
• (-ENODEV) if port invalid.
• (-ENOTSUP) if operation not supported.