From 7987a25bb9c9d03dd67157b3298b51c67e91f230 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Fri, 11 Oct 2024 19:32:10 +0800 Subject: [PATCH] Fix a build error with gcc-4.8.5. --- lib/ff_dpdk_kni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_dpdk_kni.c b/lib/ff_dpdk_kni.c index f2721e9f1..4491e71e8 100644 --- a/lib/ff_dpdk_kni.c +++ b/lib/ff_dpdk_kni.c @@ -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) { struct rte_eth_dev_info dev_info; - struct rte_ether_addr addr = {0}; + struct rte_ether_addr addr = {{0}}; int ret; kni_stat[port_id] = (struct kni_interface_stats*)rte_zmalloc(