From: Yuri Chipchev <yu...@marvell.com> add support for loopback mode
Signed-off-by: Yuri Chipchev <yu...@marvell.com> Reviewed-by: Liron Himi <lir...@marvell.com> --- drivers/net/mvpp2/mrvl_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index c70a8fe93..5cd9ee38d 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -766,6 +766,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); -- 2.28.0