]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Align CIDs according to DORQ requirement
authorRam Amrani <Ram.Amrani@cavium.com>
Tue, 14 Mar 2017 13:25:58 +0000 (15:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 18:37:04 +0000 (11:37 -0700)
commit8c72eac98850c965fec38a66bb17d75b7c97fe5f
tree6fabfaf2791a275c6a82b14ea4d3937d66c0bc98
parent58ae471cfc4e2a52c7cdc7dc28666764719f2b7e
qed: Align CIDs according to DORQ requirement

The Doorbell HW block can be configured at a granularity
of 16 x CIDs, so we need to make sure that the actual number
of CIDs configured would be a multiplication of 16.

Today, when RoCE is enabled - given that the number is unaligned,
doorbelling the higher CIDs would fail to reach the firmware and
would eventually timeout.

Fixes: a3c4cda2e12e ("qed: Initialize hardware for new protocols")
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c