net/mlx4_core: Modify port values when generting EQEs for VFs
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 21 May 2015 12:14:07 +0000 (15:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 03:05:09 +0000 (23:05 -0400)
commit74d4943fbb8c2fd32440a0bb4a6a01290d15709b
tree603a995310539c94a631721df688390371424f65
parent430910b1b93292d3a724c91123bb15bd32df1b5b
net/mlx4_core: Modify port values when generting EQEs for VFs

As part of enabling single ported VFs over IB ports we need to handle
some of the flows for generting EQ events for VFs which don't come
into play under Eth ports.

This mainly includes port management events derived from changes of the
phyiscal port (lid change, client re-register, down/up, etc), VF pkey table
changes and VF guid changes initiated by the IB driver.

(1) make sure that events are generated only for VFs sitting on
    the relevant physical port (under the ALL_SLAVES flow).

(2) before generating the event, convert from physical (one or two)
    to VF port (always equals one).

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/alias_GUID.c
drivers/net/ethernet/mellanox/mlx4/eq.c