VPP-279: af_packet via Command-line Arg should no longer be supported 86/4586/3
authorBilly McFall <[email protected]>
Fri, 6 Jan 2017 22:55:25 +0000 (17:55 -0500)
committerDamjan Marion <[email protected]>
Mon, 9 Jan 2017 14:32:00 +0000 (14:32 +0000)
With the CLI command 'create host-interface', no longer need to
support af_packet interface creation via Command-line Arg. However,
this is mostly implemented by passing arguments to DPDK. Instead of
blocking functionality, put a warning in the log directing the user
to the CLI.

Change-Id: I6c6fba6096f32ef232f1da0c5d39396c6d13f54f
Signed-off-by: Billy McFall <[email protected]>
src/vnet/devices/dpdk/init.c

index 693ca98..6068946 100755 (executable)
@@ -1114,6 +1114,9 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
            tmp = format (0, "--%s%c", #a, 0);        \
            vec_add1 (conf->eal_init_args, tmp);      \
            vec_add1 (s, 0);                          \
+            if (!strncmp(#a, "vdev", 4))              \
+              if (strstr((char*)s, "af_packet"))      \
+                clib_warning ("af_packet obsoleted. Use CLI 'create host-interface'."); \
            vec_add1 (conf->eal_init_args, s);        \
          }
        foreach_eal_double_hyphen_arg