Skip to content

Commit

Permalink
IB/mlx4: Initialize SR-IOV IB support for slaves in master context
Browse files Browse the repository at this point in the history
Allocate SR-IOV paravirtualization resources and MAD demuxing contexts
on the master.

This has two parts.  The first part is to initialize the structures to
contain the contexts.  This is done at master startup time in
mlx4_ib_init_sriov().

The second part is to actually create the tunneling resources required
on the master to support a slave.  This is performed the master
detects that a slave has started up (MLX4_DEV_EVENT_SLAVE_INIT event
generated when a slave initializes its comm channel).

For the master, there is no such startup event, so it creates its own
tunneling resources when it starts up.  In addition, the master also
creates the real special QPs.  The ib_core layer on the master causes
creation of proxy special QPs, since the master is also
paravirtualized at the ib_core layer.

Signed-off-by: Jack Morgenstein <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
  • Loading branch information
Jack Morgenstein authored and rolandd committed Oct 1, 2012
1 parent e2c7682 commit fc06573
Show file tree
Hide file tree
Showing 6 changed files with 798 additions and 8 deletions.
Loading

0 comments on commit fc06573

Please sign in to comment.