kni: fix large stack frame size
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 22 Sep 2016 14:48:54 +0000 (15:48 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 Sep 2016 15:46:39 +0000 (17:46 +0200)
commit6bbfb64b4ea17594110d09941386e182b46930fb
treed934a34ff780a5121a2891769d8715ccdb5d56b7
parent8331c6484730e29cdb8bd1a60a609533742ce893
kni: fix large stack frame size

Compile error:
.../lib/librte_eal/linuxapp/kni/kni_net.c:
In function ‘kni_net_rx_lo_fifo’:
.../lib/librte_eal/linuxapp/kni/kni_net.c:331:1:
error: the frame size of 1056 bytes is larger than 1024 bytes
[-Werror=frame-larger-than=]

This compile error seen with some compiler / kernel combinations.

Moved some local variables to the kni_dev struct.

Fixes: 8451269e6d7b ("kni: remove continuous memory restriction")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_dev.h
lib/librte_eal/linuxapp/kni/kni_net.c