[dpdk-stable] patch 'net/i40e: fix address of first segment' has been queued to LTS release 17.11.10

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Dec 19 15:33:40 CET 2019


Hi,

FYI, your patch has been queued to LTS release 17.11.10

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/21/19. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Thanks.

Luca Boccassi

---
>From 820e4efd2d8e76fe7cdc591171bdd4be98375b68 Mon Sep 17 00:00:00 2001
From: Joyce Kong <joyce.kong at arm.com>
Date: Tue, 24 Sep 2019 13:48:44 +0800
Subject: [PATCH] net/i40e: fix address of first segment

[ upstream commit ff4f8e24d535df81557f3dcef64d1aef8251f277 ]

This patch fixes (dereference after null check) coverity issue.
The address of first segmented packets was not set correctly during
reassembling packets which led to this issue.

Coverity issue: 343422, 343403
Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver")

Signed-off-by: Joyce Kong <joyce.kong at arm.com>
Reviewed-by: Xiao Zhang <xiao.zhang at intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye at intel.com>
---
 drivers/net/i40e/i40e_rxtx_vec_neon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
index c2a85fcc20..4b77e8cf4f 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
+++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
@@ -503,6 +503,7 @@ i40e_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
 			i++;
 		if (i == nb_bufs)
 			return nb_bufs;
+		rxq->pkt_first_seg = rx_pkts[i];
 	}
 	return i + reassemble_packets(rxq, &rx_pkts[i], nb_bufs - i,
 		&split_flags[i]);
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-12-19 14:32:29.221706237 +0000
+++ 0073-net-i40e-fix-address-of-first-segment.patch	2019-12-19 14:32:26.165299015 +0000
@@ -1,15 +1,16 @@
-From ff4f8e24d535df81557f3dcef64d1aef8251f277 Mon Sep 17 00:00:00 2001
+From 820e4efd2d8e76fe7cdc591171bdd4be98375b68 Mon Sep 17 00:00:00 2001
 From: Joyce Kong <joyce.kong at arm.com>
 Date: Tue, 24 Sep 2019 13:48:44 +0800
 Subject: [PATCH] net/i40e: fix address of first segment
 
+[ upstream commit ff4f8e24d535df81557f3dcef64d1aef8251f277 ]
+
 This patch fixes (dereference after null check) coverity issue.
 The address of first segmented packets was not set correctly during
 reassembling packets which led to this issue.
 
 Coverity issue: 343422, 343403
 Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver")
-Cc: stable at dpdk.org
 
 Signed-off-by: Joyce Kong <joyce.kong at arm.com>
 Reviewed-by: Xiao Zhang <xiao.zhang at intel.com>
@@ -19,10 +20,10 @@
  1 file changed, 1 insertion(+)
 
 diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
-index 864eb9a325..deb185fe2f 100644
+index c2a85fcc20..4b77e8cf4f 100644
 --- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
 +++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
-@@ -474,6 +474,7 @@ i40e_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
+@@ -503,6 +503,7 @@ i40e_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,
  			i++;
  		if (i == nb_bufs)
  			return nb_bufs;


More information about the stable mailing list