qed: Fix mask for physical address in ILT entry
authorShahed Shaikh <shahed.shaikh@cavium.com>
Mon, 21 May 2018 19:31:47 +0000 (12:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 May 2018 19:32:55 +0000 (15:32 -0400)
commitfdd13dd350dda1826579eb5c333d76b14513b812
tree870b59836783713a418b90459e570afe63e06b66
parent66fb33254f45df4b049f487aff1cbde1ef919390
qed: Fix mask for physical address in ILT entry

ILT entry requires 12 bit right shifted physical address.
Existing mask for ILT entry of physical address i.e.
ILT_ENTRY_PHY_ADDR_MASK is not sufficient to handle 64bit
address because upper 8 bits of 64 bit address were getting
masked which resulted in completer abort error on
PCIe bus due to invalid address.

Fix that mask to handle 64bit physical address.

Fixes: fe56b9e6a8d9 ("qed: Add module with basic common support")
Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c