mirror of https://github.com/F-Stack/f-stack.git
Fix a build error with gcc-4.8.5.
This commit is contained in:
parent
30867396f2
commit
7987a25bb9
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue