]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Allow communication between functions on same host
authorEugenia Emantayev <eugenia@mellanox.co.il>
Tue, 13 Dec 2011 04:16:38 +0000 (04:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2011 18:56:07 +0000 (13:56 -0500)
commitbd7d277ba04d17f7e2341acfa059d727ccf19083
treeabd1a09a1f97cf41bc2e08c6bd505f3a632b393c
parent75f9a2fc9b285d154446d65099e6f0aba7228da8
mlx4_en: Allow communication between functions on same host

To enable internal loopback, always fill DMAC in control segment
when transmitting the packet, once this is done, the packet is subject
for loopback for if the DMAC mathces one of the multicast/unicast addresses
registered on the physical port.
In receive path if source MAC is our own MAC and we are not in selftest,
or not in force LB mode - drop this packet.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c