i40e: exit ATR mode only when adding TCP/IPv4 filter succeeds
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 6 Feb 2017 22:38:42 +0000 (14:38 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 20 Mar 2017 23:45:20 +0000 (16:45 -0700)
commit377cc24980588d03abf3a2a843b8c53dfc8b5a1b
tree17190bea8a246b2cb7bf9703cb69a67ce88e7973
parente5187ee3ee9a95b1aa32a9a3daf4f07a9f89c20c
i40e: exit ATR mode only when adding TCP/IPv4 filter succeeds

Move ATR exit check after we have sent the TCP/IPv4 filter to the ring
successfully. This avoids an issue where we potentially update the
filter count without actually succeeding in adding the filter. Now, we
only increment the fd_tcp_rule after we've succeeded. Additionally, we
will re-enable ATR mode only after deletion of the filter is actually
posted to the FDIR ring.

Change-ID: If5c1dea422081cc5e2de65618b01b4c3bf6bd586
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c