DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jakub Grajciar <jgrajcia@cisco.com>
To: <dev@dpdk.org>
Cc: Jakub Grajciar <jgrajcia@cisco.com>
Subject: [dpdk-dev] [PATCH v2] net/memif: enable promisc mode
Date: Thu, 16 Apr 2020 13:08:56 +0200	[thread overview]
Message-ID: <20200416110856.3671-1-jgrajcia@cisco.com> (raw)

enable promisc mode

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

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;
-- 
2.17.1


             reply	other threads:[~2020-04-16 11:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 11:08 Jakub Grajciar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-16 11:07 [dpdk-dev] [PATCH] " Jakub Grajciar
2020-04-16 11:10 ` [dpdk-dev] [PATCH v2] " Jakub Grajciar
2020-04-16 13:44   ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200416110856.3671-1-jgrajcia@cisco.com \
    --to=jgrajcia@cisco.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).