]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
qed: Manage with less memory regions for RoCE
authorRam Amrani <Ram.Amrani@cavium.com>
Mon, 3 Apr 2017 09:21:13 +0000 (12:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Apr 2017 02:16:37 +0000 (19:16 -0700)
commitf9dc4d1f0d6f75c102ee13c0a939d9ae880a3c1e
tree145c16efd429fda35b7646c89df8ed2edd290ae2
parent5f8cb033f4c814760c9f7f2345278111d06afe47
qed: Manage with less memory regions for RoCE

It's possible some configurations would prevent driver from utilizing
all the Memory Regions due to a lack of ILT lines.
In such a case, calculate how many memory regions would have to be
dropped due to limit, and manage without those.

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
drivers/net/ethernet/qlogic/qed/qed_cxt.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_main.c
include/linux/qed/qed_if.h