ixgbe: do not override buffer length
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 5 Dec 2014 15:20:34 +0000 (15:20 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 21:57:18 +0000 (22:57 +0100)
commit51e16682cf5c8ee64b4ce4cc6a18d6d8f5e68948
treeeb8ddf716e42b2c055e515e0f4a14f5a114e2c14
parent661dfdf09ffc822621722ae9af46f1d7e080d0a5
ixgbe: do not override buffer length

The template mbuf_initializer is hard coded with a buflen which
might have been set differently by the application at the time of
mbuf pool creation.

- move buf_len fields out of rearm_data marker.
- make ixgbe_recv_pkts_vec() not touch buf_len field at all
(as all other RX functions behave).

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
lib/librte_mbuf/rte_mbuf.h
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c