]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 15:42:15 +0000 (11:42 -0400)
commitb592eb6a68f136ff85187009320643ae7c228adb
treedb9a05ba2c8beaf5e7a8feb9d0f2b3e0d273a1b0
parent6f2f81f212c5157554c0ae18f1ff1c9ef7517fba
qed: align DPI configuration to HW requirements

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>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c