summaryrefslogtreecommitdiffstats
path: root/VNFs/vACL
diff options
context:
space:
mode:
Diffstat (limited to 'VNFs/vACL')
-rw-r--r--VNFs/vACL/init.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/VNFs/vACL/init.c b/VNFs/vACL/init.c
index e85dc297..6eb39bf3 100644
--- a/VNFs/vACL/init.c
+++ b/VNFs/vACL/init.c
@@ -733,11 +733,15 @@ app_init_link(struct app_params *app)
port_config[i].tx_conf.txq_flags &=
~(ETH_TXQ_FLAGS_NOXSUMTCP|ETH_TXQ_FLAGS_NOXSUMUDP);
}
-
- 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);
- }
+ 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);
+ }
/* LINK UP */
app_link_up_internal(app, p_link);