summaryrefslogtreecommitdiff
path: root/drivers/s390/net/fsm.c
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2015-05-21 15:14:06 +0300
committerDavid S. Miller <davem@davemloft.net>2015-05-24 23:05:09 -0400
commit430910b1b93292d3a724c91123bb15bd32df1b5b (patch)
tree298d4c802b0dc1cdc886971befd727ec220da6d4 /drivers/s390/net/fsm.c
parent7c35ef4525c3255c747b935fe5af9ef4d1fbbf93 (diff)
IB/mlx4: Convert slave port before building address-handle
When multiplexling a MAD sent from VF, we should convert the port used by the guest to send the packet to the actual physical port which will be used to transmit the packet, before building the relevant address-handle (AH). This is needed under VPI for single ported VFs, since the code that builds the AH (mlx4_ib_query_ah()) makes decisions based on the input port. If we use the port number provided by the guest, it might have different protocol vs. the one this packat has to go from, and hence the result could be wrong. So far, the conversion was done after the AH was built and it worked for single ported Eth VFs which were not enabled under VPI. When adding support for single ported IB VFs and VPI, we hit that. Fixes: 449fc48866f7 ('net/mlx4: Adapt code for N-Port VF') Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/fsm.c')
0 files changed, 0 insertions, 0 deletions