---
name: "rte_port_source_params"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_port_source_params"
---

# rte\_port\_source\_params(3)

## NAME

rte\_port\_source\_params

## SYNOPSIS

`#include <rte_port_source_sink.h>`

### Data Fields

struct **rte\_mempool** \* **mempool**\
 const char \* **file\_name**\
 uint32\_t **n\_bytes\_per\_pkt**\

## Detailed Description

source port parameters

Definition at line **23** of file **rte\_port\_source\_sink.h**.

## Field Documentation

### struct rte\_mempool\* mempool

Pre-initialized buffer pool

Definition at line **25** of file **rte\_port\_source\_sink.h**.

### const char\* file\_name

The full path of the pcap file to read packets from

Definition at line **28** of file **rte\_port\_source\_sink.h**.

### uint32\_t n\_bytes\_per\_pkt

The number of bytes to be read from each packet in the pcap file. If this value is 0, the whole packet is read; if it is bigger than packet size, the generated packets will contain the whole packet

Definition at line **33** of file **rte\_port\_source\_sink.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
