net/ionic: warn if loopback mode is requested
authorAndrew Boyer <aboyer@pensando.io>
Thu, 10 Dec 2020 02:57:35 +0000 (18:57 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:04 +0000 (16:03 +0100)
The ionic FW does not support loopback mode at this time.

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ionic/ionic_ethdev.c

index cd79f25..ce6ca96 100644 (file)
@@ -919,6 +919,9 @@ ionic_dev_start(struct rte_eth_dev *eth_dev)
                return -EINVAL;
        }
 
+       if (dev_conf->lpbk_mode)
+               IONIC_PRINT(WARNING, "Loopback mode not supported");
+
        err = ionic_lif_start(lif);
        if (err) {
                IONIC_PRINT(ERR, "Cannot start LIF: %d", err);