From: Yuri Chipchev Date: Wed, 27 Jan 2021 16:09:24 +0000 (+0200) Subject: net/mvpp2: support loopback X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fc026401f48fc606dcab33c39e48d25fe891ec19;p=dpdk.git net/mvpp2: support loopback Add support for loopback mode Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index 2ec233027a..f2155008cc 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -750,6 +750,12 @@ mrvl_dev_start(struct rte_eth_dev *dev) } } + ret = pp2_ppio_set_loopback(priv->ppio, dev->data->dev_conf.lpbk_mode); + if (ret) { + MRVL_LOG(ERR, "Failed to set loopback"); + goto out; + } + if (dev->data->promiscuous == 1) mrvl_promiscuous_enable(dev);