diff options
author | Alan Brady | 2018-01-22 18:00:35 +0100 |
---|---|---|
committer | Jeff Kirsher | 2018-02-13 20:40:10 +0100 |
commit | cc6a96a41991de1961cfd712a83df21456607d30 (patch) | |
tree | 7820cb4c9018a90ad2bd45360344c08c038b9c41 /drivers/net/ethernet/intel/i40e/i40e_status.h | |
parent | i40evf: Use an iterator of the same type as the list (diff) | |
download | kernel-qcow2-linux-cc6a96a41991de1961cfd712a83df21456607d30.tar.gz kernel-qcow2-linux-cc6a96a41991de1961cfd712a83df21456607d30.tar.xz kernel-qcow2-linux-cc6a96a41991de1961cfd712a83df21456607d30.zip |
i40e: refactor promisc_changed in i40e_sync_vsi_filters
This code here is quite complex and easy to screw up. Let's see if we
can't improve the readability and maintainability a bit. This refactors
out promisc_changed into two variables 'old_overflow' and 'new_overflow'
which makes it a bit clearer when we're concerned about when and how
overflow promiscuous is changed. This also makes so that we no longer
need to pass a boolean pointer to i40e_aqc_add_filters. Instead we can
simply check if we changed the overflow promiscuous flag since the
function start.
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_status.h')
0 files changed, 0 insertions, 0 deletions