summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/dpdk
diff options
context:
space:
mode:
authorBilly McFall <bmcfall@redhat.com>2017-01-06 17:55:25 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-09 14:32:00 +0000
commit0d3c1cc7626ac39f25975ebf9d92ba903d470f79 (patch)
tree5b1eefb041b4f59e4f6e00c1ee4fe6d05c134b24 /src/vnet/devices/dpdk
parent48c1824a10d34dae4a660eba754dd2d48f9afbfe (diff)
VPP-279: af_packet via Command-line Arg should no longer be supported
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 <bmcfall@redhat.com>
Diffstat (limited to 'src/vnet/devices/dpdk')
-rwxr-xr-xsrc/vnet/devices/dpdk/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/devices/dpdk/init.c b/src/vnet/devices/dpdk/init.c
index 693ca985130..60689463492 100755
--- a/src/vnet/devices/dpdk/init.c
+++ b/src/vnet/devices/dpdk/init.c
@@ -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