Commit 4e20655
i40e: Fix adding unsupported cloud filters
If a VF tries to add unsupported cloud filter through virtchnl
then i40e_add_del_cloud_filter(_big_buf) returns -ENOTSUPP but
this error code is stored in 'ret' instead of 'aq_ret' that
is used as error code sent back to VF. In this scenario where
one of the mentioned functions fails the value of 'aq_ret'
is zero so the VF will incorrectly receive a 'success'.
Use 'aq_ret' to store return value and remove 'ret' local
variable. Additionally fix the issue when filter allocation
fails, in this case no notification is sent back to the VF.
Fixes: e284fc2 ("i40e: Add and delete cloud filter")
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20231121211338.3348677-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent e50a806 commit 4e20655
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3844 | 3844 | | |
3845 | 3845 | | |
3846 | 3846 | | |
3847 | | - | |
| 3847 | + | |
3848 | 3848 | | |
3849 | 3849 | | |
3850 | 3850 | | |
| |||
3868 | 3868 | | |
3869 | 3869 | | |
3870 | 3870 | | |
3871 | | - | |
3872 | | - | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
3873 | 3875 | | |
3874 | 3876 | | |
3875 | 3877 | | |
| |||
3917 | 3919 | | |
3918 | 3920 | | |
3919 | 3921 | | |
3920 | | - | |
| 3922 | + | |
3921 | 3923 | | |
3922 | | - | |
3923 | | - | |
| 3924 | + | |
| 3925 | + | |
3924 | 3926 | | |
3925 | 3927 | | |
3926 | | - | |
| 3928 | + | |
3927 | 3929 | | |
3928 | 3930 | | |
3929 | 3931 | | |
| |||
0 commit comments