summaryrefslogtreecommitdiffstats
path: root/src/vnet/pg/pg.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-07-23 11:54:48 +0200
committerNeale Ranns <nranns@cisco.com>2019-07-28 14:20:06 +0000
commit22e9cfd760be613f33a4135e9247729b64619cc6 (patch)
tree81c6c66f0729202b71fa9b7748b405f4489f3f5a /src/vnet/pg/pg.h
parentbe83704c5b1482dfd2ba38423662a9da5a8d8f81 (diff)
pg: add GSO support
Type: feature Change-Id: I72676495a85fbecc946aa266a75234cce70c3a5e Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/pg/pg.h')
-rw-r--r--src/vnet/pg/pg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/pg/pg.h b/src/vnet/pg/pg.h
index c0e000fe7b2..aef7a5bbf71 100644
--- a/src/vnet/pg/pg.h
+++ b/src/vnet/pg/pg.h
@@ -299,6 +299,8 @@ typedef struct
/* Identifies stream for this interface. */
u32 id;
+ u8 gso_enabled;
+ u32 gso_size;
pcap_main_t pcap_main;
u8 *pcap_file_name;
} pg_interface_t;
@@ -351,7 +353,8 @@ void pg_stream_enable_disable (pg_main_t * pg, pg_stream_t * s,
int is_enable);
/* Find/create free packet-generator interface index. */
-u32 pg_interface_add_or_get (pg_main_t * pg, uword stream_index);
+u32 pg_interface_add_or_get (pg_main_t * pg, uword stream_index,
+ u8 gso_enabled, u32 gso_size);
always_inline pg_node_t *
pg_get_node (uword node_index)