summaryrefslogtreecommitdiffstats
path: root/src/vnet/pg/pg.api
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-03 14:43:21 +0000
committerOle Tr�an <otroan@employees.org>2021-06-14 13:12:34 +0000
commit6197cb730e1571ca69859489c0ae7ea90a5c5fd4 (patch)
tree769f178533896318ed98c0014987169d24db94db /src/vnet/pg/pg.api
parent52c33d60bc63626d400067e38ab0af312fdb8594 (diff)
pg: A Tunnel mode variant of a pg interface
Type: feature this allows VPP to simulate linux tun devices. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I3adf38b49a254804370f78edd5d275d192fd00a6
Diffstat (limited to 'src/vnet/pg/pg.api')
-rw-r--r--src/vnet/pg/pg.api22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vnet/pg/pg.api b/src/vnet/pg/pg.api
index 3a44f1d87a7..3630e0c2f0d 100644
--- a/src/vnet/pg/pg.api
+++ b/src/vnet/pg/pg.api
@@ -22,6 +22,13 @@ option version = "2.0.0";
import "vnet/interface_types.api";
+enum pg_interface_mode : u8
+{
+ PG_API_MODE_ETHERNET = 0,
+ PG_API_MODE_IP4,
+ PG_API_MODE_IP6,
+};
+
/** \brief PacketGenerator create interface request
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -37,6 +44,15 @@ define pg_create_interface
bool gso_enabled;
u32 gso_size;
};
+define pg_create_interface_v2
+{
+ u32 client_index;
+ u32 context;
+ vl_api_interface_index_t interface_id;
+ bool gso_enabled;
+ u32 gso_size;
+ vl_api_pg_interface_mode_t mode;
+};
/** \brief PacketGenerator create interface response
@param context - sender context, to match reply w/ request
@@ -48,6 +64,12 @@ define pg_create_interface_reply
i32 retval;
vl_api_interface_index_t sw_if_index;
};
+define pg_create_interface_v2_reply
+{
+ u32 context;
+ i32 retval;
+ vl_api_interface_index_t sw_if_index;
+};
/** \brief PacketGenerator interface enable/disable packet coalesce
@param client_index - opaque cookie to identify the sender