netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 13/23 v3] mlx4: Unicast Loopback support
@ 2010-02-16 15:28 Yevgeny Petrilin
  2010-02-17 12:15 ` Or Gerlitz
  0 siblings, 1 reply; 4+ messages in thread
From: Yevgeny Petrilin @ 2010-02-16 15:28 UTC (permalink / raw)
  To: or.gerlitz; +Cc: Yevgeny 

On Sunday -10,January,-28163 09:59 PM, Or Gerlitz [or.gerlitz@gmail.com] wrote:
> Yevgeny Petrilin <yevgenyp@mellanox.co.il> wrote:
>> Or Gerlitz [or.gerlitz@gmail.com] wrote:
> 
>>> I wasn't sure what is the use case here, isn't loopback handled by higher levels at the network stack?
> 
>> The use case is two VMs using the same physical adapter.
> 
> I am still not with you: are you referring to the case where each VM is being served by a different VF? in that case, the VF driver (mlx4_en) has no way to know its a "loopback" packet, and switching between VFs can be programmed to the PF by the PF driver (modified mlx4_core).
> 
> If you are talking to the case both VMs are being served by the same PCI function --> same NIC then again, loopback is handled in higher level.
> 
> Is there a 3rd use case?
> 
> Or.

There is no third case. I am referring to the case where two VMs are served by two different VFs.
The mlx4_en driver doesn't know whether a packet is loopback or not, it assumes that all packets can
be loopbacks and writes the dmac to the control segment.
The HW checks this field and decides whether the packet is loopback or not (by checking whether the written mac
matches one of the registered macs on this device).

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <49BFC313.1030901@mellanox.co.il>]

end of thread, other threads:[~2010-02-17 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 15:28 [PATCH 13/23 v3] mlx4: Unicast Loopback support Yevgeny Petrilin
2010-02-17 12:15 ` Or Gerlitz
     [not found] <49BFC313.1030901@mellanox.co.il>
2010-02-04 15:56 ` Yevgeny Petrilin
2010-02-10  8:22   ` Or Gerlitz

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).