* [dpdk-dev] [PATCH v2] fm10k: set packet type for multi-segment packets
@ 2016-04-18 12:51 Michael Frasca
2016-04-18 14:05 ` Chen, Jing D
0 siblings, 1 reply; 3+ messages in thread
From: Michael Frasca @ 2016-04-18 12:51 UTC (permalink / raw)
To: jing.d.chen; +Cc: dev, Michael Frasca
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>
---
v2:
- Only copy hash, ol_flags, and packet_type to 'start' when
RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE is defined.
drivers/net/fm10k/fm10k_rxtx_vec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/fm10k/fm10k_rxtx_vec.c b/drivers/net/fm10k/fm10k_rxtx_vec.c
index f8efe8f..03e4a5c 100644
--- a/drivers/net/fm10k/fm10k_rxtx_vec.c
+++ b/drivers/net/fm10k/fm10k_rxtx_vec.c
@@ -606,8 +606,11 @@ fm10k_reassemble_packets(struct fm10k_rx_queue *rxq,
if (!split_flags[buf_idx]) {
/* it's the last packet of the set */
+#ifdef RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE
start->hash = end->hash;
start->ol_flags = end->ol_flags;
+ start->packet_type = end->packet_type;
+#endif
pkts[pkt_idx++] = start;
start = end = NULL;
}
--
2.5.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v2] fm10k: set packet type for multi-segment packets
2016-04-18 12:51 [dpdk-dev] [PATCH v2] fm10k: set packet type for multi-segment packets Michael Frasca
@ 2016-04-18 14:05 ` Chen, Jing D
2016-04-21 14:03 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Chen, Jing D @ 2016-04-18 14:05 UTC (permalink / raw)
To: Michael Frasca; +Cc: dev
Hi,
> -----Original Message-----
> From: Michael Frasca [mailto:michael.frasca@oracle.com]
> Sent: Monday, April 18, 2016 8:52 PM
> To: Chen, Jing D <jing.d.chen@intel.com>
> Cc: dev@dpdk.org; Michael Frasca <michael.frasca@oracle.com>
> Subject: [PATCH v2] fm10k: set 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v2] fm10k: set packet type for multi-segment packets
2016-04-18 14:05 ` Chen, Jing D
@ 2016-04-21 14:03 ` Bruce Richardson
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2016-04-21 14:03 UTC (permalink / raw)
To: Chen, Jing D; +Cc: Michael Frasca, dev
On Mon, Apr 18, 2016 at 02:05:23PM +0000, Chen, Jing D wrote:
> Hi,
>
> > -----Original Message-----
> > From: Michael Frasca [mailto:michael.frasca@oracle.com]
> > Sent: Monday, April 18, 2016 8:52 PM
> > To: Chen, Jing D <jing.d.chen@intel.com>
> > Cc: dev@dpdk.org; Michael Frasca <michael.frasca@oracle.com>
> > Subject: [PATCH v2] fm10k: set 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>
>
Applied to dpdk-next-net/rel_16_07
/Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-21 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-18 12:51 [dpdk-dev] [PATCH v2] fm10k: set packet type for multi-segment packets Michael Frasca
2016-04-18 14:05 ` Chen, Jing D
2016-04-21 14:03 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).