]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
libcxgb: fix incorrect ppmax calculation
authorVarun Prakash <varun@chelsio.com>
Wed, 3 Apr 2019 12:00:14 +0000 (17:30 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 2 Jul 2019 10:07:53 +0000 (12:07 +0200)
commita6683d2bc29bdd520e8d5841132520db9a992240
tree0f53357b7c41cc1e8b6e452fd2c098b8d35acb34
parent0af7dbd43dbfbb770d6abc00e2240c3e56d89068
libcxgb: fix incorrect ppmax calculation

BugLink: https://bugs.launchpad.net/bugs/1832775
[ 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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c