From fc026401f48fc606dcab33c39e48d25fe891ec19 Mon Sep 17 00:00:00 2001 From: Yuri Chipchev Date: Wed, 27 Jan 2021 18:09:24 +0200 Subject: [PATCH] net/mvpp2: support loopback Add support for loopback mode Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- 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 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); -- 2.20.1