]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit586b0eb722063ad4eb9049699b1479fd3c3acf72
tree603a995310539c94a631721df688390371424f65
parent3758ef1298b66b6881c8b73949b48ef1e1c56bee
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