NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
tcp_cpu_rss_func.h File Reference
#include <stdbool.h>
#include <arpa/inet.h>
#include <rte_ethdev.h>
#include <rte_malloc.h>
#include <doca_flow.h>
#include <doca_log.h>
#include <common.h>
Include dependency graph for tcp_cpu_rss_func.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TCP_PACKET_MAX_BURST_SIZE   4096
 

Functions

int tcp_cpu_rss_func (void *args)
 
const struct rte_tcp_hdr * extract_tcp_hdr (const struct rte_mbuf *packet)
 
doca_error_t create_tcp_session (const uint16_t queue_id, const struct rte_mbuf *pkt, struct doca_flow_port *port, struct doca_flow_pipe *gpu_rss_pipe)
 
void destroy_tcp_session (const uint16_t queue_id, const struct rte_mbuf *pkt, struct doca_flow_port *port)
 
void log_tcp_flag (const struct rte_mbuf *packet, const char *flags)
 
struct rte_mbuf * create_ack_packet (const struct rte_mbuf *src_packet, struct rte_mempool *tcp_ack_pkt_pool)
 
struct tcp_session_key extract_session_key (const struct rte_mbuf *packet)
 

Macro Definition Documentation

◆ TCP_PACKET_MAX_BURST_SIZE

#define TCP_PACKET_MAX_BURST_SIZE   4096

Definition at line 40 of file tcp_cpu_rss_func.h.

Function Documentation

◆ create_ack_packet()

struct rte_mbuf* create_ack_packet ( const struct rte_mbuf *  src_packet,
struct rte_mempool *  tcp_ack_pkt_pool 
)

Definition at line 220 of file tcp_cpu_rss_func.c.

◆ create_tcp_session()

doca_error_t create_tcp_session ( const uint16_t  queue_id,
const struct rte_mbuf *  pkt,
struct doca_flow_port *  port,
struct doca_flow_pipe *  gpu_rss_pipe 
)

Definition at line 163 of file tcp_cpu_rss_func.c.

◆ destroy_tcp_session()

void destroy_tcp_session ( const uint16_t  queue_id,
const struct rte_mbuf *  pkt,
struct doca_flow_port *  port 
)

Definition at line 188 of file tcp_cpu_rss_func.c.

◆ extract_session_key()

struct tcp_session_key extract_session_key ( const struct rte_mbuf *  packet)

Definition at line 220 of file tcp_cpu_rss_func.c.

◆ extract_tcp_hdr()

const struct rte_tcp_hdr* extract_tcp_hdr ( const struct rte_mbuf *  packet)

Definition at line 140 of file tcp_cpu_rss_func.c.

◆ log_tcp_flag()

void log_tcp_flag ( const struct rte_mbuf *  packet,
const char *  flags 
)

Definition at line 202 of file tcp_cpu_rss_func.c.

◆ tcp_cpu_rss_func()

int tcp_cpu_rss_func ( void *  args)

Definition at line 31 of file tcp_cpu_rss_func.c.