diff options
author | Ram Amrani <Ram.Amrani@Cavium.com> | 2017-01-24 13:51:41 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 15:35:02 -0500 |
commit | af2b14b8b8ae21b0047a52c767ac8b44f435a280 (patch) | |
tree | 34c3f7411630ec440ad8bd578dc06d0a365e5878 /drivers/infiniband | |
parent | 1a59075197976611bacaa383a6673f9e57e9e98b (diff) | |
download | linux-stable-af2b14b8b8ae21b0047a52c767ac8b44f435a280.tar.gz linux-stable-af2b14b8b8ae21b0047a52c767ac8b44f435a280.tar.bz2 linux-stable-af2b14b8b8ae21b0047a52c767ac8b44f435a280.zip |
RDMA/qedr: Fix RDMA CM loopback
The loopback logic in RDMA CM packets compares Ethernet addresses and
was accidently inverse.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qedr/qedr_cm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qedr/qedr_cm.c b/drivers/infiniband/hw/qedr/qedr_cm.c index 00361f310d15..a9a8d8745d2e 100644 --- a/drivers/infiniband/hw/qedr/qedr_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_cm.c @@ -398,9 +398,9 @@ static inline int qedr_gsi_build_packet(struct qedr_dev *dev, } if (ether_addr_equal(udh.eth.smac_h, udh.eth.dmac_h)) - packet->tx_dest = QED_ROCE_LL2_TX_DEST_NW; - else packet->tx_dest = QED_ROCE_LL2_TX_DEST_LB; + else + packet->tx_dest = QED_ROCE_LL2_TX_DEST_NW; packet->roce_mode = roce_mode; memcpy(packet->header.vaddr, ud_header_buffer, header_size); |