]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: do not bring the VSI up, if it was down before the XDP setup
authorLarysa Zaremba <larysa.zaremba@intel.com>
Fri, 23 Aug 2024 09:59:31 +0000 (11:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:34 +0000 (11:11 +0200)
commit81e5622c052b808bdbea06a01fd96bdd83b6f2c3
treebf090fb650d79532afd1efd50f9d39f129adcf67
parent2f057db2fb29bc209c103050647562e60554d3d3
ice: do not bring the VSI up, if it was down before the XDP setup

[ Upstream commit 04c7e14e5b0b6227e7b00d7a96ca2f2426ab9171 ]

After XDP configuration is completed, we bring the interface up
unconditionally, regardless of its state before the call to .ndo_bpf().

Preserve the information whether the interface had to be brought down and
later bring it up only in such case.

Fixes: efc2214b6047 ("ice: Add support for XDP")
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c