fm10k: fix packet type for multi-segment packets
authorMichael Frasca <michael.frasca@oracle.com>
Mon, 18 Apr 2016 12:51:52 +0000 (08:51 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 6 May 2016 13:51:22 +0000 (15:51 +0200)
commit4a2b8700dd8a14760ca35d04bbbcf9324293e98e
tree150c4b2f6f0f358bd49344f637b7a8dd916a5f2c
parent8ea3bacb37f9d19120538f93ff32c389e5e2e2c4
fm10k: fix packet type for multi-segment packets

When building a chain of mbufs for a multi-segment packet, the
packet_type field resides at the end of the chain. It should be
copied forward to the head of the list.

Also, uses RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE to guard packet-type
computation. The mbuf fields are not copied when this define is not set.

Fixes: fe65e1e1ce61 ("fm10k: add vector scatter Rx")

Signed-off-by: Michael Frasca <michael.frasca@oracle.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_rxtx_vec.c