DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/qede: fix regression introduced by b10231aed1ed
@ 2020-12-23 13:51 Balazs Nemeth
  0 siblings, 0 replies; only message in thread
From: Balazs Nemeth @ 2020-12-23 13:51 UTC (permalink / raw)
  To: dev

When calling rte_eth_promiscuous_enable(port_id) followed by
rte_eth_allmulticast_enable(port_id), the port is not in promisc mode
anymore. This patch ensures that promisc mode takes precedence over
allmulticast mode fixing the regression introduced by b10231aed1ed.
 drivers/net/qede/qede_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index 549013557..3bec62d82 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -1885,6 +1885,8 @@ static int qede_allmulticast_enable(struct rte_eth_dev *eth_dev)
 	enum _ecore_status_t ecore_status;
+	if (rte_eth_promiscuous_get(eth_dev->data->port_id) == 1)
 	ecore_status = qed_configure_filter_rx_mode(eth_dev, type);
 	return ecore_status >= ECORE_SUCCESS ? 0 : -EAGAIN;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-23 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 13:51 [dpdk-dev] [PATCH] net/qede: fix regression introduced by b10231aed1ed Balazs Nemeth

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git