On 9/5/19 7:40 PM, Stephen Hemminger wrote:
On Thu, 5 Sep 2019 17:10:40 +0100
Andrew Rybchenko <arybche...@solarflare.com> wrote:

From: Ivan Ilchenko <ivan.ilche...@oktetlabs.ru>

rte_eth_promiscuous_enable()/rte_eth_promiscuous_disable() return
value was changed from void to int, so this patch modify usage
of these functions across net/failsafe according to new return type.

Try to keep promiscuous mode consistent across all active
devices in the case of failure.

Signed-off-by: Ivan Ilchenko <ivan.ilche...@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybche...@solarflare.com>
In reality, failsafe's promiscious mode is actually a lie.
The only common use case of failsafe is on Azure/Hyper-V and in a guest
setting promiscuous is not allowed. That is why there is no promiscuous
setting in netvsc PMD.

Confused
$ git grep promiscuous drivers/net/netvsc/
drivers/net/netvsc/hn_ethdev.c:hn_dev_promiscuous_enable(struct rte_eth_dev *dev)
drivers/net/netvsc/hn_ethdev.c: return hn_vf_promiscuous_enable(dev);
drivers/net/netvsc/hn_ethdev.c:hn_dev_promiscuous_disable(struct rte_eth_dev *dev)
drivers/net/netvsc/hn_ethdev.c: return hn_vf_promiscuous_disable(dev);
drivers/net/netvsc/hn_ethdev.c: .promiscuous_enable     = hn_dev_promiscuous_enable, drivers/net/netvsc/hn_ethdev.c: .promiscuous_disable    = hn_dev_promiscuous_disable, drivers/net/netvsc/hn_var.h:int hn_vf_promiscuous_enable(struct rte_eth_dev *dev); drivers/net/netvsc/hn_var.h:int hn_vf_promiscuous_disable(struct rte_eth_dev *dev); drivers/net/netvsc/hn_vf.c:int hn_vf_promiscuous_enable(struct rte_eth_dev *dev) drivers/net/netvsc/hn_vf.c:     VF_ETHDEV_FUNC_RET_STATUS(dev, rte_eth_promiscuous_enable); drivers/net/netvsc/hn_vf.c:int hn_vf_promiscuous_disable(struct rte_eth_dev *dev) drivers/net/netvsc/hn_vf.c:     VF_ETHDEV_FUNC_RET_STATUS(dev, rte_eth_promiscuous_disable);

Reply via email to