]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: In SR-IOV mode host should add promisc QP to default entry only
authorEugenia Emantayev <eugenia@mellanox.com>
Wed, 16 Jul 2014 08:57:50 +0000 (11:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 06:26:25 +0000 (23:26 -0700)
commita4b515545292203cbc7f2ea759e8a5f7847865a8
treed80363b42687b9a7df283133719fed9b57e9eae7
parentac1401c9cc11273231a8b09cfe26b1ca3e16cf20
net/mlx4_core: In SR-IOV mode host should add promisc QP to default entry only

In current situation host is adding the promiscuous QP to all steering
entries and the default entry as well. In this case when having PV
and SR-IOV on the same setup bridge will receive all traffic that is
targeted to the other VMs. This is bad.
Solution: In SR-IOV mode host can add promiscuous QP to default entry only.
The above problem and fix are relevant for B0 steering mode only.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c