net/i40e: update tunnel filter restore function
authorBernard Iremonger <bernard.iremonger@intel.com>
Fri, 31 Mar 2017 17:58:35 +0000 (18:58 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:02 +0000 (19:03 +0200)
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>
drivers/net/i40e/i40e_ethdev.c

index 09c485e..4b61d99 100644 (file)
@@ -10656,7 +10656,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)