DPDK
22.11.7
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Functions
_
c
g
r
Variables
a
c
d
e
l
r
s
Typedefs
a
c
d
e
h
l
m
p
r
s
t
Enumerations
d
r
Enumerator
c
e
f
r
s
w
Macros
_
b
c
i
l
m
o
p
r
s
t
u
v
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
lib
gso
rte_gso.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2017 Intel Corporation
3
*/
4
5
#ifndef _RTE_GSO_H_
6
#define _RTE_GSO_H_
7
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#include <stdint.h>
18
#include <
rte_mbuf.h
>
19
20
/* Minimum GSO segment size for TCP based packets. */
21
#define RTE_GSO_SEG_SIZE_MIN (sizeof(struct rte_ether_hdr) + \
22
sizeof(struct rte_ipv4_hdr) + sizeof(struct rte_tcp_hdr) + 1)
23
24
/* Minimum GSO segment size for UDP based packets. */
25
#define RTE_GSO_UDP_SEG_SIZE_MIN (sizeof(struct rte_ether_hdr) + \
26
sizeof(struct rte_ipv4_hdr) + sizeof(struct rte_udp_hdr) + 1)
27
28
/* GSO flags for rte_gso_ctx. */
29
#define RTE_GSO_FLAG_IPID_FIXED (1ULL << 0)
37
struct
rte_gso_ctx
{
38
struct
rte_mempool
*
direct_pool
;
42
struct
rte_mempool
*
indirect_pool
;
48
uint64_t
flag
;
52
uint32_t
gso_types
;
61
uint16_t
gso_size
;
66
};
67
119
int
rte_gso_segment
(
struct
rte_mbuf
*pkt,
120
const
struct
rte_gso_ctx
*ctx,
121
struct
rte_mbuf
**pkts_out,
122
uint16_t nb_pkts_out);
123
#ifdef __cplusplus
124
}
125
#endif
126
127
#endif
/* _RTE_GSO_H_ */
rte_gso_segment
int rte_gso_segment(struct rte_mbuf *pkt, const struct rte_gso_ctx *ctx, struct rte_mbuf **pkts_out, uint16_t nb_pkts_out)
rte_mbuf.h
rte_gso_ctx
Definition:
rte_gso.h:37
rte_gso_ctx::gso_types
uint32_t gso_types
Definition:
rte_gso.h:52
rte_gso_ctx::flag
uint64_t flag
Definition:
rte_gso.h:48
rte_gso_ctx::indirect_pool
struct rte_mempool * indirect_pool
Definition:
rte_gso.h:42
rte_gso_ctx::direct_pool
struct rte_mempool * direct_pool
Definition:
rte_gso.h:38
rte_gso_ctx::gso_size
uint16_t gso_size
Definition:
rte_gso.h:61
rte_mbuf
Definition:
rte_mbuf_core.h:465
rte_mempool
Definition:
rte_mempool.h:219
Generated by
1.9.4