linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mlx4 - query regarding PF VF functionality division
@ 2014-06-23  9:33 Bob Biloxi
  2014-06-23 12:00 ` Or Gerlitz
  0 siblings, 1 reply; 5+ messages in thread
From: Bob Biloxi @ 2014-06-23  9:33 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org

Hi All,

I was going through the Mellanox driver (mlx4) and then I had
difficulty understanding which portion of code corresponds to the one
executed by the PF(Physical Function Driver) and which portion of code
by (Virtual Function Driver) in the SRIOV mode.

My confusion is because, I was of the understanding that the QPs, CQs
(and their creation, state mgmt commands) etc are to be performed by
the virtual function driver(VF driver).


And the role of the physical function driver(PF driver) is to just
take care of the resource_tracker.c and ICM allocation.


But of late, I think I may have understood wrong. This is because
there is code that is specifically executed when mlx4_is_master is
true/false( indicating PF or VF).

And then, there is code which is not surrounded by this test, which
indicates it is executed in both cases(PF driver as well as VF
driver).

Is my understanding correct? If yes, then are the QPs, CQs and
ethernet tx, rx related functionality is executed both by master and
slave?

Is there any way we can clearly separate the files that are used by PF
vs the files that are used by VF in the (drivers/net/ethernet/mlx4
sub-directory)?

I would be really thankful and really appreciate all the
help/clarification I can get in understanding this.


Thank you so much.


Best Regards,
Bob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-26  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23  9:33 mlx4 - query regarding PF VF functionality division Bob Biloxi
2014-06-23 12:00 ` Or Gerlitz
2014-06-24 13:42   ` Bob Biloxi
2014-06-25 20:43     ` Or Gerlitz
2014-06-26  9:03       ` Bob Biloxi

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