| rte_pmd_i40e.h(3) | Library Functions Manual | rte_pmd_i40e.h(3) |
rte_pmd_i40e.h
#include <rte_compat.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
struct rte_pmd_i40e_mb_event_param
struct rte_pmd_i40e_ddp_version
struct rte_pmd_i40e_ddp_device_id
struct rte_pmd_i40e_profile_info
struct rte_pmd_i40e_profile_list
struct rte_pmd_i40e_proto_info
struct rte_pmd_i40e_ptype_info
struct rte_pmd_i40e_queue_region_conf
struct rte_pmd_i40e_pkt_template_action
struct rte_pmd_i40e_pkt_template_input
struct rte_pmd_i40e_pkt_template_conf
#define RTE_PMD_I40E_PTYPE_USER_DEFINE_MASK 0x80000000
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 }
enum rte_pmd_i40e_package_op { }
enum rte_pmd_i40e_package_info
enum rte_pmd_i40e_queue_region_op { }
enum rte_pmd_i40e_pkt_template_behavior
enum rte_pmd_i40e_pkt_template_status {
RTE_PMD_I40E_PKT_TEMPLATE_NO_REPORT_STATUS,
RTE_PMD_I40E_PKT_TEMPLATE_REPORT_ID,
RTE_PMD_I40E_PKT_TEMPLATE_REPORT_ID_FLEX_4,
RTE_PMD_I40E_PKT_TEMPLATE_REPORT_FLEX_8 }
int rte_pmd_i40e_flow_add_del_packet_template (uint16_t
port, const struct rte_pmd_i40e_pkt_template_conf *conf, uint8_t add)
int rte_pmd_i40e_ping_vfs (uint16_t port, uint16_t vf)
int rte_pmd_i40e_set_vf_mac_anti_spoof (uint16_t port, uint16_t vf_id,
uint8_t on)
int rte_pmd_i40e_set_vf_vlan_anti_spoof (uint16_t port, uint16_t vf_id,
uint8_t on)
int rte_pmd_i40e_set_tx_loopback (uint16_t port, uint8_t on)
int rte_pmd_i40e_set_vf_unicast_promisc (uint16_t port, uint16_t vf_id,
uint8_t on)
int rte_pmd_i40e_set_vf_multicast_promisc (uint16_t port, uint16_t
vf_id, uint8_t on)
int rte_pmd_i40e_set_vf_mac_addr (uint16_t port, uint16_t vf_id, struct
rte_ether_addr *mac_addr)
int rte_pmd_i40e_remove_vf_mac_addr (uint16_t port, uint16_t vf_id,
struct rte_ether_addr *mac_addr)
int rte_pmd_i40e_set_vf_vlan_stripq (uint16_t port, uint16_t vf,
uint8_t on)
int rte_pmd_i40e_set_vf_vlan_insert (uint16_t port, uint16_t vf_id,
uint16_t vlan_id)
int rte_pmd_i40e_set_vf_broadcast (uint16_t port, uint16_t vf_id,
uint8_t on)
int rte_pmd_i40e_set_vf_vlan_tag (uint16_t port, uint16_t vf_id,
uint8_t on)
int rte_pmd_i40e_set_vf_vlan_filter (uint16_t port, uint16_t vlan_id,
uint64_t vf_mask, uint8_t on)
int rte_pmd_i40e_get_vf_stats (uint16_t port, uint16_t vf_id, struct
rte_eth_stats *stats)
int rte_pmd_i40e_reset_vf_stats (uint16_t port, uint16_t vf_id)
int rte_pmd_i40e_set_vf_max_bw (uint16_t port, uint16_t vf_id, uint32_t
bw)
int rte_pmd_i40e_set_vf_tc_bw_alloc (uint16_t port, uint16_t vf_id,
uint8_t tc_num, uint8_t *bw_weight)
int rte_pmd_i40e_set_vf_tc_max_bw (uint16_t port, uint16_t vf_id,
uint8_t tc_no, uint32_t bw)
int rte_pmd_i40e_set_tc_strict_prio (uint16_t port, uint8_t tc_map)
int rte_pmd_i40e_process_ddp_package (uint16_t port, uint8_t *buff,
uint32_t size, enum rte_pmd_i40e_package_op op)
int rte_pmd_i40e_get_ddp_info (uint8_t *pkg, uint32_t pkg_size, uint8_t
*info, uint32_t size, enum rte_pmd_i40e_package_info type)
int rte_pmd_i40e_get_ddp_list (uint16_t port, uint8_t *buff, uint32_t
size)
int rte_pmd_i40e_ptype_mapping_update (uint16_t port, struct
rte_pmd_i40e_ptype_mapping *mapping_items, uint16_t count, uint8_t
exclusive)
int rte_pmd_i40e_ptype_mapping_reset (uint16_t port)
int rte_pmd_i40e_ptype_mapping_get (uint16_t port, struct
rte_pmd_i40e_ptype_mapping *mapping_items, uint16_t size, uint16_t *count,
uint8_t valid_only)
int rte_pmd_i40e_ptype_mapping_replace (uint16_t port, uint32_t target,
uint8_t mask, uint32_t pkt_type)
int rte_pmd_i40e_add_vf_mac_addr (uint16_t port, uint16_t vf_id, struct
rte_ether_addr *mac_addr)
int rte_pmd_i40e_flow_type_mapping_update (uint16_t port, struct
rte_pmd_i40e_flow_type_mapping *mapping_items, uint16_t count, uint8_t
exclusive)
int rte_pmd_i40e_flow_type_mapping_get (uint16_t port, struct
rte_pmd_i40e_flow_type_mapping *mapping_items)
int rte_pmd_i40e_flow_type_mapping_reset (uint16_t port)
int rte_pmd_i40e_query_vfid_by_mac (uint16_t port, const struct
rte_ether_addr *vf_mac)
int rte_pmd_i40e_rss_queue_region_conf (uint16_t port_id, enum
rte_pmd_i40e_queue_region_op op_type, void *arg)
int rte_pmd_i40e_inset_get (uint16_t port, uint8_t pctype, struct
rte_pmd_i40e_inset *inset, enum rte_pmd_i40e_inset_type inset_type)
int rte_pmd_i40e_inset_set (uint16_t port, uint8_t pctype, struct
rte_pmd_i40e_inset *inset, enum rte_pmd_i40e_inset_type inset_type)
static int rte_pmd_i40e_inset_field_get (uint64_t inset, uint8_t
field_idx)
static int rte_pmd_i40e_inset_field_set (uint64_t *inset, uint8_t
field_idx)
static int rte_pmd_i40e_inset_field_clear (uint64_t *inset, uint8_t
field_idx)
__rte_experimental int rte_pmd_i40e_get_fdir_info (uint16_t port,
struct rte_eth_fdir_info *fdir_info)
__rte_experimental int rte_pmd_i40e_get_fdir_stats (uint16_t port,
struct rte_eth_fdir_stats *fdir_stat)
__rte_experimental int rte_pmd_i40e_set_gre_key_len (uint16_t port,
uint8_t len)
__rte_experimental int rte_pmd_i40e_set_switch_dev (uint16_t port_id,
struct rte_eth_dev *switch_dev)
__rte_experimental int rte_pmd_i40e_set_pf_src_prune (uint16_t port,
uint8_t on)
i40e PMD specific functions.
EXPERIMENTAL: this API may change, or be removed, without prior notice
Definition in file rte_pmd_i40e.h.
ptype mapping table only accept RTE_PTYPE_XXX or 'user defined' ptype. A ptype with MSB set will be regarded as a user defined ptype. Below macro help to create a user defined ptype.
Definition at line 176 of file rte_pmd_i40e.h.
Response sent back to i40e driver from user app after callback
Enumerator
Definition at line 28 of file rte_pmd_i40e.h.
Option of package processing.
Enumerator
Definition at line 49 of file rte_pmd_i40e.h.
Types of package information.
Definition at line 60 of file rte_pmd_i40e.h.
Option types of queue region.
Enumerator
Definition at line 81 of file rte_pmd_i40e.h.
Behavior will be taken if raw packet template is matched.
Definition at line 234 of file rte_pmd_i40e.h.
Flow director report status It defines what will be reported if raw packet template is matched.
Enumerator
Definition at line 244 of file rte_pmd_i40e.h.
Add or remove raw packet template filter to Flow Director.
Parameters
Returns
Notify VF when PF link status changes.
Parameters
Returns
Enable/Disable VF MAC anti spoofing.
Parameters
Returns
Enable/Disable VF VLAN anti spoofing.
Parameters
Returns
Enable/Disable TX loopback on all the PF and VFs.
Parameters
Returns
Enable/Disable VF unicast promiscuous mode.
Parameters
Returns
Enable/Disable VF multicast promiscuous mode.
Parameters
Returns
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.
Parameters
Returns
Remove the VF MAC address.
Parameters
Returns
Enable/Disable vf vlan strip for all queues in a pool
Parameters
Returns
Enable/Disable vf vlan insert
Parameters
Returns
Enable/Disable vf broadcast mode
Parameters
Returns
Enable/Disable vf vlan tag
Parameters
Returns
Enable/Disable VF VLAN filter
Parameters
Returns
Get VF's statistics
Parameters
Returns
Clear VF's statistics
Parameters
Returns
Set VF's max bandwidth.
Per VF bandwidth limitation and per TC bandwidth limitation cannot be enabled in parallel. If per TC bandwidth is enabled, this function will disable it.
Parameters
Returns
Set all the TCs' bandwidth weight on a specific VF.
The bw_weight means the percentage occupied by the TC. It can be taken as the relative min bandwidth setting.
Parameters
Returns
Set a specific TC's max bandwidth on a specific VF.
Parameters
Returns
Set some TCs to strict priority mode on a physical port.
Parameters
Returns
Load/Unload a ddp package
Parameters
Returns
rte_pmd_i40e_get_ddp_info - Get profile's info
Parameters
Returns
rte_pmd_i40e_get_ddp_list - Get loaded profile list
Parameters
Returns
Update hardware defined ptype to software defined packet type mapping table.
Parameters
Reset hardware defined ptype to software defined ptype mapping table to default.
Parameters
Get hardware defined ptype to software defined ptype mapping items.
Parameters
Replace a specific or a group of software defined ptypes with a new one
Parameters
Add a VF MAC address.
Add more MAC address for VF. The existing MAC addresses are still effective.
Parameters
Returns
Update hardware defined pctype to software defined flow type mapping table.
Parameters
Get software defined flow type to hardware defined pctype mapping items.
Parameters
Reset hardware defined pctype to software defined flow type mapping table to default.
Parameters
On the PF, find VF index based on VF MAC address
Parameters
Returns
Do RSS queue region configuration for that port as the command option type
Parameters
Get input set
Parameters
Returns
Set input set
Parameters
Returns
Get bit value for some field index
Parameters
Returns
Definition at line 1006 of file rte_pmd_i40e.h.
Set bit value for some field index
Parameters
Returns
Definition at line 1032 of file rte_pmd_i40e.h.
Clear bit value for some field index
Parameters
Returns
Definition at line 1057 of file rte_pmd_i40e.h.
Get port fdir info
Parameters
Returns
Get port fdir status
Parameters
Returns
Set GRE key length
Parameters
Returns
For ipn3ke, i40e works with FPGA. In this situation, i40e get link status from fpga, fpga works as switch_dev for i40e. This function set switch_dev for i40e.
Parameters
Returns
Enable/Disable source prune on all the PF.
Parameters
Returns
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |