aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/pg/cli.c
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2021-03-12 14:29:48 +0000
committerDave Barach <openvpp@barachs.net>2021-04-26 12:23:31 +0000
commitc99ab12cbb9252806db55f7a79e5d84b41df3525 (patch)
treec8583bea8fddd15da85f79e2233a8f5f17694cc5 /src/vnet/pg/cli.c
parentda1b76aa89ede1f4d7947cdcd6ec2f61948ff7e7 (diff)
pg: fix packet coalescing cli
Small fix to the packet coalescing cli. Type: fix Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I1edbf6e43937aa0345185f06437095e0558dba31
Diffstat (limited to 'src/vnet/pg/cli.c')
-rw-r--r--src/vnet/pg/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c
index 3ef7a959f20..9da0f8d9981 100644
--- a/src/vnet/pg/cli.c
+++ b/src/vnet/pg/cli.c
@@ -673,6 +673,8 @@ create_pg_if_cmd_fn (vlib_main_t * vm,
{
if (unformat (line_input, "interface pg%u", &if_id))
;
+ else if (unformat (line_input, "coalesce-enabled"))
+ coalesce_enabled = 1;
else if (unformat (line_input, "gso-enabled"))
{
gso_enabled = 1;
@@ -683,8 +685,6 @@ create_pg_if_cmd_fn (vlib_main_t * vm,
error = clib_error_create ("gso enabled but gso size missing");
goto done;
}
- if (unformat (line_input, "coalesce-enabled"))
- coalesce_enabled = 1;
}
else
{