Change PMD link down to warning instead of panic error 67/34667/1
authorDeepak S <deepak.s@linux.intel.com>
Fri, 12 May 2017 10:45:44 +0000 (16:15 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Fri, 12 May 2017 10:49:04 +0000 (16:19 +0530)
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 <deepak.s@linux.intel.com>
common/VIL/l2l3_stack/interface.c

index 84c390d..bd4c4e9 100644 (file)
@@ -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);
                                }
                        }