Commit 2dd2f2e
i40e: Fix adding unsupported cloud filters
[ Upstream commit 4e20655 ]
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 <[email protected]>
Signed-off-by: Ivan Vecera <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 8f71a7f commit 2dd2f2e
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
3907 | | - | |
| 3907 | + | |
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| |||
3928 | 3928 | | |
3929 | 3929 | | |
3930 | 3930 | | |
3931 | | - | |
3932 | | - | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
3933 | 3935 | | |
3934 | 3936 | | |
3935 | 3937 | | |
| |||
3977 | 3979 | | |
3978 | 3980 | | |
3979 | 3981 | | |
3980 | | - | |
| 3982 | + | |
3981 | 3983 | | |
3982 | | - | |
3983 | | - | |
| 3984 | + | |
| 3985 | + | |
3984 | 3986 | | |
3985 | 3987 | | |
3986 | | - | |
| 3988 | + | |
3987 | 3989 | | |
3988 | 3990 | | |
3989 | 3991 | | |
| |||
0 commit comments