* [PATCH net 2/3] mlx4_core: use correct flag for unicast_promisc
@ 2012-02-06 16:26 Yevgeny Petrilin
2012-02-06 17:13 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Petrilin @ 2012-02-06 16:26 UTC (permalink / raw)
To: davem; +Cc: netdev, yevgenyp, eugenia
From: Eugenia Emantayev <eugenia@mellanox.co.il>
Use MLX4_DEV_CAP_FLAG_VEP_UC_STEER for unicast_promisc_add/remove
Unicast entries were managed in wrong data structures.
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
---
drivers/net/ethernet/mellanox/mlx4/mcg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c
index 0785d9b..00794cb 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mcg.c
+++ b/drivers/net/ethernet/mellanox/mlx4/mcg.c
@@ -1004,7 +1004,7 @@ EXPORT_SYMBOL_GPL(mlx4_multicast_promisc_remove);
int mlx4_unicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port)
{
- if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_MC_STEER))
+ if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_UC_STEER))
return 0;
if (mlx4_is_mfunc(dev))
@@ -1016,7 +1016,7 @@ EXPORT_SYMBOL_GPL(mlx4_unicast_promisc_add);
int mlx4_unicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port)
{
- if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_MC_STEER))
+ if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_UC_STEER))
return 0;
if (mlx4_is_mfunc(dev))
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net 2/3] mlx4_core: use correct flag for unicast_promisc
2012-02-06 16:26 [PATCH net 2/3] mlx4_core: use correct flag for unicast_promisc Yevgeny Petrilin
@ 2012-02-06 17:13 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-02-06 17:13 UTC (permalink / raw)
To: yevgenyp; +Cc: netdev, eugenia
From: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Date: Mon, 6 Feb 2012 18:26:29 +0200
> From: Eugenia Emantayev <eugenia@mellanox.co.il>
>
> Use MLX4_DEV_CAP_FLAG_VEP_UC_STEER for unicast_promisc_add/remove
> Unicast entries were managed in wrong data structures.
>
> Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-06 17:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06 16:26 [PATCH net 2/3] mlx4_core: use correct flag for unicast_promisc Yevgeny Petrilin
2012-02-06 17:13 ` David Miller
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).