]> git.karo-electronics.de Git - karo-tx-linux.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)
commit0093631966aad046ddf21e157a43765c295e16a3
treead602c103403aba5b6234e8b0731cb7da7949b43
parentcbebb85f306f6023ebaa26ca66380571b4b680bf
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