[v2] net/memif: enable promisc mode

Message ID 20200416111017.3721-1-jgrajcia@cisco.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series [v2] net/memif: enable promisc mode |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing fail Testing issues
ci/Intel-compilation success Compilation OK

Commit Message

  enable promisc mode

Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
---
 drivers/net/memif/rte_eth_memif.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Ferruh Yigit April 16, 2020, 1:44 p.m. UTC | #1
On 4/16/2020 12:10 PM, Jakub Grajciar wrote:
> enable promisc mode
> 
> Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
  

Patch

diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index 81d71c53a..0ac38044e 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -1498,6 +1498,7 @@  memif_create(struct rte_vdev_device *vdev, enum memif_role_t role,
 	data->numa_node = numa_node;
 	data->dev_link = pmd_link;
 	data->mac_addrs = ether_addr;
+	data->promiscuous = 1;
 
 	eth_dev->dev_ops = &ops;
 	eth_dev->device = &vdev->device;