]> git.baikalelectronics.ru Git - kernel.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)
commitc3d539aa87c0526f616ac4844a3ca7f1c68d0107
treed43f805f73808843d10e7d5bfaa03e8983c9fdc4
parentbe35712f9a493443518d0d927e1889e706b2d566
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