mirror of https://gitee.com/openkylin/linux.git
430910b1b9
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ah.c | ||
alias_GUID.c | ||
cm.c | ||
cq.c | ||
doorbell.c | ||
mad.c | ||
main.c | ||
mcg.c | ||
mlx4_ib.h | ||
mr.c | ||
qp.c | ||
srq.c | ||
sysfs.c | ||
user.h |