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
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c
index 3ef7a95..9da0f8d 100644
--- a/src/vnet/pg/cli.c
+++ b/src/vnet/pg/cli.c
@@ -673,6 +673,8 @@
{
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 @@
error = clib_error_create ("gso enabled but gso size missing");
goto done;
}
- if (unformat (line_input, "coalesce-enabled"))
- coalesce_enabled = 1;
}
else
{