OpenCloudOS-Kernel/drivers/net/ethernet/cavium/thunder
Vadim Lomovtsev 9b5c4dfb2a net: thunderx: rework mac addresses list to u64 array
It is too expensive to pass u64 values via linked list, instead
allocate array for them by overall number of mac addresses from netdev.

This eventually removes multiple kmalloc() calls, aviod memory
fragmentation and allow to put single null check on kmalloc
return value in order to prevent a potential null pointer dereference.

Addresses-Coverity-ID: 1467429 ("Dereference null return value")
Fixes: 37c3347eb2 ("net: thunderx: add ndo_set_rx_mode callback implementation for VF")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-09 10:59:38 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nic.h net: thunderx: rework mac addresses list to u64 array 2018-04-09 10:59:38 -04:00
nic_main.c net: thunderx: add XCAST messages handlers for PF 2018-03-31 22:18:17 -04:00
nic_reg.h net: thunderx: add timestamping support 2018-01-16 14:31:14 -05:00
nicvf_ethtool.c net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name 2018-01-29 12:22:06 -05:00
nicvf_main.c net: thunderx: rework mac addresses list to u64 array 2018-04-09 10:59:38 -04:00
nicvf_queues.c Revert "net: thunderx: Add support for xdp redirect" 2018-02-14 14:23:39 -05:00
nicvf_queues.h Revert "net: thunderx: Add support for xdp redirect" 2018-02-14 14:23:39 -05:00
q_struct.h net: thunderx: Optimize RBDR descriptor handling 2017-05-02 15:41:20 -04:00
thunder_bgx.c net: thunderx: add multicast filter management support 2018-03-31 22:18:17 -04:00
thunder_bgx.h net: thunderx: add multicast filter management support 2018-03-31 22:18:17 -04:00
thunder_xcv.c net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name 2018-01-29 12:22:06 -05:00