]> 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)
commitda24e3d6e915787e9dd326e4cc8bd7be607c319c
treeabd1a09a1f97cf41bc2e08c6bd505f3a632b393c
parenta51b53f019a5d8a8041fd03bf74806b30b52ee86
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