]> www.infradead.org Git - users/willy/xarray.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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 3 Sep 2024 16:05:40 +0000 (09:05 -0700)
commit04c7e14e5b0b6227e7b00d7a96ca2f2426ab9171
treec8aaeea8a842d3f1f39d548860fd0572a4566824
parent7e3b407ccbea3259b8583ccc34807622025e390f
ice: do not bring the VSI up, if it was down before the XDP setup

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>
drivers/net/ethernet/intel/ice/ice_main.c