summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/device.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-12-23 12:26:52 +0100
committerDamjan Marion <damarion@cisco.com>2018-12-23 12:26:52 +0100
commite430b6ec123dbe117b579d8284d7201da635be8d (patch)
treef81df9c035043c99c3a24a30a44f17c5c6661589 /src/plugins/avf/device.c
parentc811663491262fdc01e8309b1f9ecde2a110a84d (diff)
avf: new ethernet-input support
Change-Id: I5511823f38ad56161b6a538f2d9e63459eded1eb Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r--src/plugins/avf/device.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index 4f6c869a7f4..cf493dd41b6 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -1407,7 +1407,6 @@ avf_init (vlib_main_t * vm)
avf_main_t *am = &avf_main;
clib_error_t *error;
vlib_thread_main_t *tm = vlib_get_thread_main ();
- int i;
if ((error = vlib_call_init_function (vm, pci_bus_init)))
return error;
@@ -1415,30 +1414,6 @@ avf_init (vlib_main_t * vm)
vec_validate_aligned (am->per_thread_data, tm->n_vlib_mains - 1,
CLIB_CACHE_LINE_BYTES);
- /* initialize ptype based loopup table */
- vec_validate_aligned (am->ptypes, 255, CLIB_CACHE_LINE_BYTES);
-
- /* *INDENT-OFF* */
- vec_foreach_index (i, am->ptypes)
- {
- avf_ptype_t *p = vec_elt_at_index (am->ptypes, i);
- if ((i >= 22) && (i <= 87))
- {
- p->next_node = VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT;
- p->flags = VNET_BUFFER_F_IS_IP4;
- }
- else if ((i >= 88) && (i <= 153))
- {
- p->next_node = VNET_DEVICE_INPUT_NEXT_IP6_INPUT;
- p->flags = VNET_BUFFER_F_IS_IP6;
- }
- else
- p->next_node = VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT;
- p->buffer_advance = device_input_next_node_advance[p->next_node];
- p->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
- }
- /* *INDENT-ON* */
-
am->log_class = vlib_log_register_class ("avf_plugin", 0);
vlib_log_debug (am->log_class, "initialized");