OSDN Git Service

bnx2x: allocate mac filtering pending list in PAGE_SIZE increments
authorJason Baron <jbaron@akamai.com>
Thu, 22 Sep 2016 21:12:26 +0000 (17:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Sep 2016 13:43:06 +0000 (09:43 -0400)
commit3129e1599c6edfafc2a0a8be9f2eb344c7feb920
tree48ea93455bc0ee13261a953028a0c1db473a25c6
parente8c6ae9fbf8ca70ef0c2de0d2f3995acb0dc8968
bnx2x: allocate mac filtering pending list in PAGE_SIZE increments

Currently, we can have high order page allocations that specify
GFP_ATOMIC when configuring multicast MAC address filters.

For example, we have seen order 2 page allocation failures with
~500 multicast addresses configured.

Convert the allocation for the pending list to be done in PAGE_SIZE
increments.

Signed-off-by: Jason Baron <jbaron@akamai.com>
Cc: Yuval Mintz <Yuval.Mintz@qlogic.com>
Cc: Ariel Elior <Ariel.Elior@qlogic.com>
Acked-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c