diff options
Diffstat (limited to 'VNFs/vFW')
-rw-r--r-- | VNFs/vFW/init.c | 10 | ||||
-rw-r--r-- | VNFs/vFW/pipeline/pipeline_vfw.c | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/VNFs/vFW/init.c b/VNFs/vFW/init.c index 676cdb3d..54143773 100644 --- a/VNFs/vFW/init.c +++ b/VNFs/vFW/init.c @@ -769,9 +769,15 @@ app_init_link(struct app_params *app) ETH_TXQ_FLAGS_NOXSUMUDP); } - if (ifm_port_setup(p_link->pmd_id, &port_config[i])) - rte_panic("Port Setup Failed: %s - %" PRIu32 + if (ifm_port_setup(p_link->pmd_id, &port_config[i])) { + printf("Failed to configure port %s - %"PRIu32 + ".\n", p_link->name, p_link->pmd_id); + printf("Try again with offload disabled....\n"); + port_config[i].tx_conf.txq_flags |= ETH_TXQ_FLAGS_NOOFFLOADS; + if (ifm_port_setup (p_link->pmd_id, &port_config[i])) + rte_panic("Port Setup Failed: %s - %" PRIu32 "\n", p_link->name, p_link->pmd_id); + } app_link_up_internal(app, p_link); } diff --git a/VNFs/vFW/pipeline/pipeline_vfw.c b/VNFs/vFW/pipeline/pipeline_vfw.c index 934e442a..f235bc59 100644 --- a/VNFs/vFW/pipeline/pipeline_vfw.c +++ b/VNFs/vFW/pipeline/pipeline_vfw.c @@ -2420,6 +2420,7 @@ static void cmd_vfw_clearstats_parsed(__attribute__ ((unused)) rte_vfw_counter_table[i].pkts_drop_ttl = 0; rte_vfw_counter_table[i].pkts_drop_bad_size = 0; rte_vfw_counter_table[i].pkts_drop_fragmented = 0; + rte_vfw_counter_table[i].pkts_drop_unsupported_type = 0; rte_vfw_counter_table[i].pkts_drop_without_arp_entry = 0; rte_vfw_counter_table[i].internal_time_sum = 0; rte_vfw_counter_table[i].external_time_sum = 0; |