dpdk: remove dead code
Type: improvement Change-Id: I888f29e1ff15c5aa59a2a74dc0b2a818baf0bfde Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Dave Wallace

parent
b2a357bc1f
commit
ee577115ff
@@ -1059,15 +1059,11 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
||||
u8 no_vmbus = 0;
|
||||
u8 file_prefix = 0;
|
||||
u8 *socket_mem = 0;
|
||||
u8 *huge_dir_path = 0;
|
||||
u32 vendor, device, domain, bus, func;
|
||||
void *fmt_func;
|
||||
void *fmt_addr;
|
||||
f64 poll_interval;
|
||||
|
||||
huge_dir_path =
|
||||
format (0, "%s/hugepages%c", vlib_unix_get_runtime_dir (), 0);
|
||||
|
||||
conf->device_config_index_by_pci_addr = hash_create (0, sizeof (uword));
|
||||
mhash_init (&conf->device_config_index_by_vmbus_addr, sizeof (uword),
|
||||
sizeof (vlib_vmbus_addr_t));
|
||||
@@ -1410,11 +1406,6 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
||||
RTE_VECT_SIMD_256 :
|
||||
RTE_VECT_SIMD_512);
|
||||
|
||||
/* lazy umount hugepages */
|
||||
umount2 ((char *) huge_dir_path, MNT_DETACH);
|
||||
rmdir ((char *) huge_dir_path);
|
||||
vec_free (huge_dir_path);
|
||||
|
||||
/* main thread 1st */
|
||||
if ((error = dpdk_buffer_pools_create (vm)))
|
||||
return error;
|
||||
|
Reference in New Issue
Block a user