diff mbox

[dpdk-dev,v3,5/5] net/i40e: update tunnel filter restore function

Message ID 1490718059-380-6-git-send-email-bernard.iremonger@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers show

Checks

Context Check Description
ci/Intel-compilation fail apply patch file failure
ci/checkpatch warning coding style issues

Commit Message

Bernard Iremonger March 28, 2017, 4:20 p.m. UTC
The QinQ filter uses big buffers, set the big_buffer flag
when restoring a QinQ filter.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/i40e/i40e_ethdev.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Wenzhuo Lu March 29, 2017, 1:54 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: Iremonger, Bernard
> Sent: Wednesday, March 29, 2017 12:21 AM
> To: dev@dpdk.org; Xing, Beilei; Wu, Jingjing
> Cc: Zhang, Helin; Lu, Wenzhuo; Iremonger, Bernard
> Subject: [PATCH v3 5/5] net/i40e: update tunnel filter restore function
> 
> The QinQ filter uses big buffers, set the big_buffer flag when restoring a QinQ
> filter.
> 
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> 
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
diff mbox

Patch

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index a57b0416d..33bf3b0ac 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -10543,7 +10543,10 @@  i40e_tunnel_filter_restore(struct i40e_pf *pf)
 		     I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoUDP) ||
 		    ((f->input.flags &
 		     I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE) ==
-		     I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE))
+		     I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE) ||
+		    ((f->input.flags &
+		     I40E_AQC_ADD_CLOUD_FILTER_CUSTOM_QINQ) ==
+		     I40E_AQC_ADD_CLOUD_FILTER_CUSTOM_QINQ))
 			big_buffer = 1;
 
 		if (big_buffer)