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:22:54 +0000 (07:22 +0200)
commit93e9dabbcdc7b8cd5f6c8e5451963fc1a1771e70
tree5debf08b0f9ce7ce9f4dbe20ac646f823b47848a
parent3e67174547a3dbb3076cd5665d967b65434a4c6f
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 (Microsoft) <sashal@kernel.org>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c