]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: Refactor promiscuous functions
authorBrett Creeley <brett.creeley@intel.com>
Tue, 2 Mar 2021 18:15:34 +0000 (10:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:39:39 +0000 (09:39 +0200)
commite06e4cdfb65e2f21d6e723c41350d24b5bf1d611
tree79a8098fbf0bb040b171a22ea7ec668b26ec7ef3
parent0bf32d6fb1fcbf841bb9945570e0e2a70072c00f
ice: Refactor promiscuous functions

[ Upstream commit fabf480bf95d71c9cfe8a8d6307e0035df963a6a ]

Some of the promiscuous mode functions take a boolean to indicate
set/clear, which affects readability. Refactor and provide an
interface for the promiscuous mode code with explicit set and clear
promiscuous mode operations.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Stable-dep-of: 425c5f266b2e ("ice: Check VF VSI Pointer Value in ice_vc_add_fdir_fltr()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_fltr.c
drivers/net/ethernet/intel/ice/ice_fltr.h
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c