liquidio: Replace vmalloc with kmalloc in octeon_register_dispatch_fn()
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 06:11:40 +0000 (14:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 00:40:11 +0000 (17:40 -0700)
commit1e51f9358af513c1620b527d1e8c90b8820591a2
treefad42cd7102ceb7ff9eab46188c7142bf3f97336
parenta0d716d8e42abcb973afed27c6fa44bd146d2616
liquidio: Replace vmalloc with kmalloc in octeon_register_dispatch_fn()

The size of struct octeon_dispatch is too small, it is better to use
kmalloc instead of vmalloc.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c