cnic: use kvzalloc to allocate memory for csk_tbl
authorJan Dakinevich <jan.dakinevich@virtuozzo.com>
Mon, 9 Jul 2018 13:51:19 +0000 (16:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 05:55:52 +0000 (22:55 -0700)
commitfb8ed3af74e3fc0ae1c72b363af2f0d7783e1cd5
tree54e2f8b143cb6fe3d38d5454bfd657b4242403db
parent3c546728df983c3c1c232241249c238c143bcb9e
cnic: use kvzalloc to allocate memory for csk_tbl

Size of csk_tbl is about 58K, which means 3rd order page allocation.
kvzalloc provides a fallback if no high order memory is available.

Signed-off-by: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c