bnx2x: allocate mac filtering 'mcast_list' in PAGE_SIZE increments
authorJason Baron <jbaron@akamai.com>
Thu, 22 Sep 2016 21:12:25 +0000 (17:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Sep 2016 13:43:06 +0000 (09:43 -0400)
commite8c6ae9fbf8ca70ef0c2de0d2f3995acb0dc8968
treed1e1e5fbcee7979dc3dc58de4d41e732cd876c6d
parentb47c62c5de2bc43a26bcaca8d7a93bf9dee66ffe
bnx2x: allocate mac filtering 'mcast_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 'mcast_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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c