]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: remove duplicate add/delete adminq command code for filters
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 5 Oct 2016 16:30:41 +0000 (09:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Oct 2016 21:26:40 +0000 (14:26 -0700)
commita8b75611f0b74df64b0a02fe6c429fddc76772ba
treead602c103403aba5b6234e8b0731cb7da7949b43
parent4d465727a9b65c3014ebe4147e431327ebf8aadf
i40e: remove duplicate add/delete adminq command code for filters

We duplicate some code around adding and deleting filters using the
adminq interface. This is prone to errors in case there are bugs. Use
functions which extract the logic to their own portion so that we don't
duplicate it twice in code.

Change-ID: I60d68aeb887976787dec00b23ab386a106e61465
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