summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-07-26 19:55:29 +0200
committerDave Barach <openvpp@barachs.net>2016-07-30 13:09:58 +0000
commit8719fc4968466b61716764e3f68aa7268c9dfd1f (patch)
treebf9977c39f24d94d7dfd3d4ab76c7c5264f3d1ad
parent819e0f4845a8bf86a61b15741e516f2aca7ee0ed (diff)
Remove per-worker destination frame queue
This frame queue is not part of the dpdk code anymore, so it can be removed. It will save some space in the 1st cacelineof dpdk device data struct. Change-Id: If839861961548750601400a511a609be7ae84b30 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vnet/vnet/devices/dpdk/dpdk.h3
-rw-r--r--vnet/vnet/devices/dpdk/init.c6
-rw-r--r--vnet/vnet/devices/dpdk/vhost_user.c3
3 files changed, 0 insertions, 12 deletions
diff --git a/vnet/vnet/devices/dpdk/dpdk.h b/vnet/vnet/devices/dpdk/dpdk.h
index 830bf102aa3..fba32317b8c 100644
--- a/vnet/vnet/devices/dpdk/dpdk.h
+++ b/vnet/vnet/devices/dpdk/dpdk.h
@@ -203,9 +203,6 @@ typedef struct {
/* vector of traced contexts, per device */
u32 * d_trace_buffers;
- /* per-worker destination frame queue */
- dpdk_frame_t * frames;
-
/* number of sub-interfaces */
u16 vlan_subifs;
diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c
index 816b20b37e6..1f4629dafc6 100644
--- a/vnet/vnet/devices/dpdk/init.c
+++ b/vnet/vnet/devices/dpdk/init.c
@@ -649,9 +649,6 @@ dpdk_lib_init (dpdk_main_t * dm)
vec_reset_length (xd->rx_vectors[j]);
}
- vec_validate_aligned (xd->frames, tm->n_vlib_mains,
- CLIB_CACHE_LINE_BYTES);
-
rv = dpdk_port_setup(dm, xd);
if (rv < 0)
@@ -763,9 +760,6 @@ dpdk_lib_init (dpdk_main_t * dm)
vec_reset_length (xd->rx_vectors[j]);
}
- vec_validate_aligned (xd->frames, tm->n_vlib_mains,
- CLIB_CACHE_LINE_BYTES);
-
/* FIXME Set up one TX-queue per worker thread */
{
diff --git a/vnet/vnet/devices/dpdk/vhost_user.c b/vnet/vnet/devices/dpdk/vhost_user.c
index 0df9f0bd1a1..f1c50019625 100644
--- a/vnet/vnet/devices/dpdk/vhost_user.c
+++ b/vnet/vnet/devices/dpdk/vhost_user.c
@@ -322,9 +322,6 @@ dpdk_create_vhost_user_if_internal (u32 * hw_if_index, u32 if_id, u8 *hwaddr)
vec_reset_length (xd->rx_vectors[j]);
}
- vec_validate_aligned (xd->frames, tm->n_vlib_mains,
- CLIB_CACHE_LINE_BYTES);
-
}
/*
* Generate random MAC address for the interface