DPDK
17.02.1
|
#include <rte_ethdev.h>
Go to the source code of this file.
Data Structures | |
struct | rte_pmd_i40e_mb_event_param |
Enumerations | |
enum | rte_pmd_i40e_mb_event_rsp { RTE_PMD_I40E_MB_EVENT_NOOP_ACK, RTE_PMD_I40E_MB_EVENT_NOOP_NACK, RTE_PMD_I40E_MB_EVENT_PROCEED, RTE_PMD_I40E_MB_EVENT_MAX } |
Functions | |
int | rte_pmd_i40e_ping_vfs (uint8_t port, uint16_t vf) |
int | rte_pmd_i40e_set_vf_mac_anti_spoof (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_vf_vlan_anti_spoof (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_tx_loopback (uint8_t port, uint8_t on) |
int | rte_pmd_i40e_set_vf_unicast_promisc (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_vf_multicast_promisc (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_vf_mac_addr (uint8_t port, uint16_t vf_id, struct ether_addr *mac_addr) |
int | rte_pmd_i40e_set_vf_vlan_stripq (uint8_t port, uint16_t vf, uint8_t on) |
int | rte_pmd_i40e_set_vf_vlan_insert (uint8_t port, uint16_t vf_id, uint16_t vlan_id) |
int | rte_pmd_i40e_set_vf_broadcast (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_vf_vlan_tag (uint8_t port, uint16_t vf_id, uint8_t on) |
int | rte_pmd_i40e_set_vf_vlan_filter (uint8_t port, uint16_t vlan_id, uint64_t vf_mask, uint8_t on) |
int | rte_pmd_i40e_get_vf_stats (uint8_t port, uint16_t vf_id, struct rte_eth_stats *stats) |
int | rte_pmd_i40e_reset_vf_stats (uint8_t port, uint16_t vf_id) |
i40e PMD specific functions.
EXPERIMENTAL: this API may change, or be removed, without prior notice
Definition in file rte_pmd_i40e.h.
Response sent back to i40e driver from user app after callback
Definition at line 50 of file rte_pmd_i40e.h.
int rte_pmd_i40e_ping_vfs | ( | uint8_t | port, |
uint16_t | vf | ||
) |
Notify VF when PF link status changes.
port | The port identifier of the Ethernet device. |
vf | VF id. |
int rte_pmd_i40e_set_vf_mac_anti_spoof | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable VF MAC anti spoofing.
port | The port identifier of the Ethernet device. |
vf_id | VF on which to set MAC anti spoofing. |
on | 1 - Enable VFs MAC anti spoofing. 0 - Disable VFs MAC anti spoofing. |
int rte_pmd_i40e_set_vf_vlan_anti_spoof | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable VF VLAN anti spoofing.
port | The port identifier of the Ethernet device. |
vf_id | VF on which to set VLAN anti spoofing. |
on | 1 - Enable VFs VLAN anti spoofing. 0 - Disable VFs VLAN anti spoofing. |
int rte_pmd_i40e_set_tx_loopback | ( | uint8_t | port, |
uint8_t | on | ||
) |
Enable/Disable TX loopback on all the PF and VFs.
port | The port identifier of the Ethernet device. |
on | 1 - Enable TX loopback. 0 - Disable TX loopback. |
int rte_pmd_i40e_set_vf_unicast_promisc | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable VF unicast promiscuous mode.
port | The port identifier of the Ethernet device. |
vf_id | VF on which to set. |
on | 1 - Enable. 0 - Disable. |
int rte_pmd_i40e_set_vf_multicast_promisc | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable VF multicast promiscuous mode.
port | The port identifier of the Ethernet device. |
vf_id | VF on which to set. |
on | 1 - Enable. 0 - Disable. |
int rte_pmd_i40e_set_vf_mac_addr | ( | uint8_t | port, |
uint16_t | vf_id, | ||
struct ether_addr * | mac_addr | ||
) |
Set the VF MAC address.
PF should set MAC address before VF initialized, if PF sets the MAC address after VF initialized, new MAC address won't be effective until VF reinitialize.
This will remove all existing MAC filters.
port | The port identifier of the Ethernet device. |
vf_id | VF id. |
mac_addr | VF MAC address. |
int rte_pmd_i40e_set_vf_vlan_stripq | ( | uint8_t | port, |
uint16_t | vf, | ||
uint8_t | on | ||
) |
Enable/Disable vf vlan strip for all queues in a pool
port | 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. |
int rte_pmd_i40e_set_vf_vlan_insert | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint16_t | vlan_id | ||
) |
Enable/Disable vf vlan insert
port | The port identifier of the Ethernet device. |
vf_id | ID specifying VF. |
vlan_id | 0 - Disable VF's vlan insert. n - Enable; n is inserted as the vlan id. |
int rte_pmd_i40e_set_vf_broadcast | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable vf broadcast mode
port | The port identifier of the Ethernet device. |
vf_id | ID specifying VF. |
on | 0 - Disable broadcast. 1 - Enable broadcast. |
int rte_pmd_i40e_set_vf_vlan_tag | ( | uint8_t | port, |
uint16_t | vf_id, | ||
uint8_t | on | ||
) |
Enable/Disable vf vlan tag
port | The port identifier of the Ethernet device. |
vf_id | ID specifying VF. |
on | 0 - Disable VF's vlan tag. n - Enable VF's vlan tag. |
int rte_pmd_i40e_set_vf_vlan_filter | ( | uint8_t | port, |
uint16_t | vlan_id, | ||
uint64_t | vf_mask, | ||
uint8_t | on | ||
) |
Enable/Disable VF VLAN filter
port | The port identifier of the Ethernet device. |
vlan_id | ID specifying VLAN |
vf_mask | Mask to filter VF's |
on | 0 - Disable VF's VLAN filter. 1 - Enable VF's VLAN filter. |
int rte_pmd_i40e_get_vf_stats | ( | uint8_t | port, |
uint16_t | vf_id, | ||
struct rte_eth_stats * | stats | ||
) |
Get VF's statistics
port | The port identifier of the Ethernet device. |
vf_id | VF on which to get. |
stats | A pointer to a structure of type rte_eth_stats to be filled with the values of device counters for the following set of statistics:
|
int rte_pmd_i40e_reset_vf_stats | ( | uint8_t | port, |
uint16_t | vf_id | ||
) |
Clear VF's statistics
port | The port identifier of the Ethernet device. |
vf_id | VF on which to get. |