net/i40e: update destroy tunnel filter function
authorBernard Iremonger <bernard.iremonger@intel.com>
Fri, 31 Mar 2017 17:58:34 +0000 (18:58 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:01 +0000 (19:03 +0200)
The QinQ filter uses big buffers, set the big_buffer flag
when removing a QinQ filter.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/i40e/i40e_flow.c

index bbec7dc..9f541ea 100644 (file)
@@ -2095,7 +2095,9 @@ i40e_flow_destroy_tunnel_filter(struct i40e_pf *pf,
        if (((filter->input.flags & I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoUDP) ==
            I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoUDP) ||
            ((filter->input.flags & I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE) ==
-            I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE))
+           I40E_AQC_ADD_CLOUD_FILTER_TEID_MPLSoGRE) ||
+           ((filter->input.flags & I40E_AQC_ADD_CLOUD_FILTER_CUSTOM_QINQ) ==
+           I40E_AQC_ADD_CLOUD_FILTER_CUSTOM_QINQ))
                big_buffer = 1;
 
        if (big_buffer)