VF driver should not fail probe if the host PF driver has not assigned any MAC address for the VF. It should generate a random MAC address and configure the MAC and then continue probing the device. Fixes: be160484a48d ("net/bnxt: check if MAC address is all zeros") Cc: stable@dpdk.org Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
13 lines
285 B
C
13 lines
285 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2014-2018 Broadcom
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef _BNXT_UTIL_H_
|
|
#define _BNXT_UTIL_H_
|
|
|
|
int bnxt_check_zero_bytes(const uint8_t *bytes, int len);
|
|
void bnxt_eth_hw_addr_random(uint8_t *mac_addr);
|
|
|
|
#endif /* _BNXT_UTIL_H_ */
|