diff options
author | Michal Swiatkowski <michal.swiatkowski@intel.com> | 2023-03-10 14:33:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-30 13:51:18 +0300 |
commit | ad62a28b1261a512070c09f8a232026429c91d04 (patch) | |
tree | 96a96ac3aea69422d9e153c641519359dd3ae177 /lib/.gitignore | |
parent | 90c229d3456624abef1871e8ccf866af3933d672 (diff) | |
download | linux-ad62a28b1261a512070c09f8a232026429c91d04.tar.xz |
ice: check if VF exists before mode check
[ Upstream commit 83b49e7f63da88a1544cba2b2e40bfabb24bd203 ]
Setting trust on VF should return EINVAL when there is no VF. Move
checking for switchdev mode after checking if VF exists.
Fixes: c54d209c78b8 ("ice: Wait for VF to be reset/ready before configuration")
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Kalyan Kodamagula <kalyan.kodamagula@intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/.gitignore')
0 files changed, 0 insertions, 0 deletions