]> git.ipfire.org Git - thirdparty/linux.git/commit
libcxgb: fix incorrect ppmax calculation
authorVarun Prakash <varun@chelsio.com>
Wed, 3 Apr 2019 12:00:14 +0000 (17:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:40:26 +0000 (17:40 -0700)
commitcc5a726c79158bd307150e8d4176ec79b52001ea
treed43f805f73808843d10e7d5bfaa03e8983c9fdc4
parent0a89eb92d8c335da92bd5f54d8463b87dd440d45
libcxgb: fix incorrect ppmax calculation

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>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c