]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: align DPI configuration to HW requirements
authorRam Amrani <Ram.Amrani@cavium.com>
Sun, 30 Apr 2017 08:49:09 +0000 (11:49 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:02 +0000 (22:32 -0700)
commite3aa6750abbcff4c55ed244adf049fc7d2db8e99
treeccd16dc68a13f6ef2988291e4b0ba7b0271974a6
parent51c532e241aea57a7ff6f19b77ce952ba617fe5d
qed: align DPI configuration to HW requirements

Orabug: 26783820

When calculating doorbell BAR partitioning round up the number of
CPUs to the nearest power of 2 so the size of the DPI (per user
section) configured in the hardware will be stored properly and
not truncated.

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>
[ Upstream commit 107392b75ffc96a2418d5382e52b08c598575e1b ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c