libcxgb: fix incorrect ppmax calculation
authorVarun Prakash <varun@chelsio.com>
Wed, 3 Apr 2019 12:00:14 +0000 (17:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:21:50 +0000 (07:21 +0200)
commit57186663b3a17f85bb098c736f3415deea6941da
tree22aeefb82835b6afb4a1e9ded9b6a75cf16e01f1
parent5c5e9f23df7a9e8b954dcfd6687ef52a359c983a
libcxgb: fix incorrect ppmax calculation

[ Upstream commit cc5a726c79158bd307150e8d4176ec79b52001ea ]

BITS_TO_LONGS() uses DIV_ROUND_UP() because of
this ppmax value can be greater than available
per cpu page pods.

This patch removes BITS_TO_LONGS() to fix this
issue.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c