OSDN Git Service

i40e: restore TCPv4 input set when re-enabling ATR
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 8 Mar 2018 22:52:11 +0000 (14:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Mar 2018 19:34:35 +0000 (12:34 -0700)
commit089915f0f23f1a09b4aecebe88212c5a4fef37fa
treee3c2ce6aa25ff5e4ed4b6a2312efecea74645cb1
parentbc2a3a6cdb00c7e3c04735370fb5777d3cae22d2
i40e: restore TCPv4 input set when re-enabling ATR

When we re-enable ATR we need to restore the input set for TCPv4
filters, in order for ATR to function correctly. We already do this for
the normal case of re-enabling ATR when disabling ntuple support.
However, when re-enabling ATR after the last TCPv4 filter is removed (but
when ntuple support is still active), we did not restore the TCPv4
filter input set.

This can cause problems if the TCPv4 filters from FDir had changed the
input set, as ATR will no longer behave as expected.

When clearing the ATR auto-disable flag, make sure we restore the TCPv4
input set to avoid this.

Signed-off-by: Jacob Keller <jacob.e.keller@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_main.c