]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/mlx4: Create paravirt contexts for VFs when master IB driver initializes
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Fri, 3 Aug 2012 08:40:58 +0000 (08:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Sun, 23 Sep 2012 16:34:40 +0000 (09:34 -0700)
commit775ac48336b2609080b43c4269509d1778d21447
tree1c7fe1e8e9fd91b48490599afdd7787223076226
parenta0ac73cad7dd111d9ccd38efae27eb2e84c67518
IB/mlx4: Create paravirt contexts for VFs when master IB driver initializes

When we have VFs and PFs on same host, the VFs are activated within
the mlx4_core module before the mlx4_ib kernel module is loaded.

When the mlx4_ib module initializes the PF (master), it now creates
MAD paravirtualization contexts for any VFs that already active.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx4/main.c