Fix a build error with gcc-4.8.5.

This commit is contained in:
fengbojiang 2024-10-11 19:32:10 +08:00
parent 30867396f2
commit 7987a25bb9
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ ff_kni_alloc(uint16_t port_id, unsigned socket_id, int type, int port_idx,
{ {
if (rte_eal_process_type() == RTE_PROC_PRIMARY) { if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
struct rte_eth_dev_info dev_info; struct rte_eth_dev_info dev_info;
struct rte_ether_addr addr = {0}; struct rte_ether_addr addr = {{0}};
int ret; int ret;
kni_stat[port_id] = (struct kni_interface_stats*)rte_zmalloc( kni_stat[port_id] = (struct kni_interface_stats*)rte_zmalloc(