DPDK  21.08.0
Data Structures | Macros | Functions
rte_pmd_ice.h File Reference
#include <stdio.h>
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>

Go to the source code of this file.

Data Structures

union  rte_net_ice_proto_xtr_metadata
 

Macros

#define RTE_NET_ICE_DYNF_PROTO_XTR_METADATA(m)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_VLAN   (rte_net_ice_dynflag_proto_xtr_vlan_mask)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV4   (rte_net_ice_dynflag_proto_xtr_ipv4_mask)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6   (rte_net_ice_dynflag_proto_xtr_ipv6_mask)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW   (rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_TCP   (rte_net_ice_dynflag_proto_xtr_tcp_mask)
 
#define RTE_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET   (rte_net_ice_dynflag_proto_xtr_ip_offset_mask)
 

Functions

static __rte_experimental __rte_always_inline int rte_net_ice_dynf_proto_xtr_metadata_avail (void)
 
static __rte_experimental __rte_always_inline uint32_t rte_net_ice_dynf_proto_xtr_metadata_get (struct rte_mbuf *m)
 
static __rte_experimental void rte_net_ice_dump_proto_xtr_metadata (struct rte_mbuf *m)
 

Detailed Description

ice PMD specific functions.

EXPERIMENTAL: this API may change, or be removed, without prior notice

Definition in file rte_pmd_ice.h.

Macro Definition Documentation

◆ RTE_NET_ICE_DYNF_PROTO_XTR_METADATA

#define RTE_NET_ICE_DYNF_PROTO_XTR_METADATA (   m)
Value:
rte_net_ice_dynfield_proto_xtr_metadata_offs, \
uint32_t *)
#define RTE_MBUF_DYNFIELD(m, offset, type)
Definition: rte_mbuf_dyn.h:235

The mbuf dynamic field pointer for protocol extraction metadata.

Definition at line 99 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_VLAN

#define RTE_PKT_RX_DYNF_PROTO_XTR_VLAN   (rte_net_ice_dynflag_proto_xtr_vlan_mask)

The mbuf dynamic flag for VLAN protocol extraction metadata, it is valid when dev_args 'proto_xtr' has 'vlan' specified.

Definition at line 108 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_IPV4

#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV4   (rte_net_ice_dynflag_proto_xtr_ipv4_mask)

The mbuf dynamic flag for IPv4 protocol extraction metadata, it is valid when dev_args 'proto_xtr' has 'ipv4' specified.

Definition at line 115 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_IPV6

#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6   (rte_net_ice_dynflag_proto_xtr_ipv6_mask)

The mbuf dynamic flag for IPv6 protocol extraction metadata, it is valid when dev_args 'proto_xtr' has 'ipv6' specified.

Definition at line 122 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW

#define RTE_PKT_RX_DYNF_PROTO_XTR_IPV6_FLOW   (rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask)

The mbuf dynamic flag for IPv6 with flow protocol extraction metadata, it is valid when dev_args 'proto_xtr' has 'ipv6_flow' specified.

Definition at line 129 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_TCP

#define RTE_PKT_RX_DYNF_PROTO_XTR_TCP   (rte_net_ice_dynflag_proto_xtr_tcp_mask)

The mbuf dynamic flag for TCP protocol extraction metadata, it is valid when dev_args 'proto_xtr' has 'tcp' specified.

Definition at line 136 of file rte_pmd_ice.h.

◆ RTE_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET

#define RTE_PKT_RX_DYNF_PROTO_XTR_IP_OFFSET   (rte_net_ice_dynflag_proto_xtr_ip_offset_mask)

The mbuf dynamic flag for IP_OFFSET extraction metadata, it is valid when dev_args 'proto_xtr' has 'ip_offset' specified.

Definition at line 143 of file rte_pmd_ice.h.

Function Documentation

◆ rte_net_ice_dynf_proto_xtr_metadata_avail()

static __rte_experimental __rte_always_inline int rte_net_ice_dynf_proto_xtr_metadata_avail ( void  )
static

Check if mbuf dynamic field for protocol extraction metadata is registered.

Returns
True if registered, false otherwise.

Definition at line 154 of file rte_pmd_ice.h.

◆ rte_net_ice_dynf_proto_xtr_metadata_get()

static __rte_experimental __rte_always_inline uint32_t rte_net_ice_dynf_proto_xtr_metadata_get ( struct rte_mbuf m)
static

Get the mbuf dynamic field for protocol extraction metadata.

Parameters
mThe pointer to the mbuf.
Returns
The saved protocol extraction metadata.

Definition at line 169 of file rte_pmd_ice.h.

◆ rte_net_ice_dump_proto_xtr_metadata()

static __rte_experimental void rte_net_ice_dump_proto_xtr_metadata ( struct rte_mbuf m)
inlinestatic

Dump the mbuf dynamic field for protocol extraction metadata.

Parameters
mThe pointer to the mbuf.

Definition at line 182 of file rte_pmd_ice.h.