---
name: "rte_swx_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_swx_port_source_params"
---

# rte\_swx\_port\_source\_params(3)

## NAME

rte\_swx\_port\_source\_params

## SYNOPSIS

`#include <rte_swx_port_source_sink.h>`

### Data Fields

struct **rte\_mempool** \* **pool**\
 const char \* **file\_name**\
 uint64\_t **n\_loops**\
 uint32\_t **n\_pkts\_max**\

## Detailed Description

Source port creation parameters.

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

## Field Documentation

### struct rte\_mempool\* pool

Buffer pool. Must be valid.

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

### const char\* file\_name

Name of a valid PCAP file to read the input packets from.

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

### uint64\_t n\_loops

Number of times to loop through the input PCAP file. Loop infinite times when set to 0.

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

### uint32\_t n\_pkts\_max

Maximum number of packets to read from the PCAP file. When 0, it is internally set to RTE\_SWX\_PORT\_SOURCE\_PKTS\_MAX. Once read from the PCAP file, the same packets are looped forever.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
