]> 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)
commit0950d61916790eef371b87c4ebbfdc0536842987
treed43f805f73808843d10e7d5bfaa03e8983c9fdc4
parent2e4df5a05d9e759dcbd6fde2ba0c4f54087a72f8
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