From: Deepak S Date: Fri, 12 May 2017 10:45:44 +0000 (+0530) Subject: Change PMD link down to warning instead of panic error X-Git-Tag: v1.0.0~17 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F34667%2F1;p=samplevnf.git Change PMD link down to warning instead of panic error On SRIOV/OVS, NIC interface link always be UP. But to set the IP, we need to bring down the interface. This patch allows the program to continue after printing warning. Change-Id: I79212f4d71501af5f3065143e067a22855a5fde6 Signed-off-by: Deepak S --- diff --git a/common/VIL/l2l3_stack/interface.c b/common/VIL/l2l3_stack/interface.c index 84c390da..bd4c4e92 100644 --- a/common/VIL/l2l3_stack/interface.c +++ b/common/VIL/l2l3_stack/interface.c @@ -486,7 +486,7 @@ void ifm_update_linkstatus(uint8_t port_id, uint16_t linkstatus) status = rte_eth_dev_set_link_down(port_id); if (status < 0) { - rte_panic("(%" PRIu32 "): PMD set link down error %" + printf("(%" PRIu32 "): PMD set link down... continuing...%" PRId32 "\n", port_id, status); } }