* [PATCH v2] i40e: add an error code check in i40e_vsi_setup
@ 2023-10-20 2:43 Su Hui
2023-10-20 6:56 ` Dan Carpenter
0 siblings, 1 reply; 4+ messages in thread
From: Su Hui @ 2023-10-20 2:43 UTC (permalink / raw)
To: dan.carpenter, jesse.brandeburg, anthony.l.nguyen, davem,
edumazet, kuba, pabeni
Cc: Su Hui, intel-wired-lan, netdev, linux-kernel, kernel-janitors
check the value of 'ret' after calling 'i40e_vsi_config_rss'.
Signed-off-by: Su Hui <suhui@nfschina.com>
---
v2:
- call i40e_vsi_clear_rings() to free rings(thank dan carpenter for
pointing out this).
drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index de7fd43dc11c..4904bc8f5777 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -14567,9 +14567,13 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
if ((pf->hw_features & I40E_HW_RSS_AQ_CAPABLE) &&
(vsi->type == I40E_VSI_VMDQ2)) {
ret = i40e_vsi_config_rss(vsi);
+ if (ret)
+ goto err_config;
}
return vsi;
+err_config:
+ i40e_vsi_clear_rings(vsi);
err_rings:
i40e_vsi_free_q_vectors(vsi);
err_msix:
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] i40e: add an error code check in i40e_vsi_setup
2023-10-20 2:43 [PATCH v2] i40e: add an error code check in i40e_vsi_setup Su Hui
@ 2023-10-20 6:56 ` Dan Carpenter
2023-10-20 21:09 ` Jacob Keller
0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2023-10-20 6:56 UTC (permalink / raw)
To: Su Hui
Cc: jesse.brandeburg, anthony.l.nguyen, davem, edumazet, kuba, pabeni,
intel-wired-lan, netdev, linux-kernel, kernel-janitors
On Fri, Oct 20, 2023 at 10:43:09AM +0800, Su Hui wrote:
> check the value of 'ret' after calling 'i40e_vsi_config_rss'.
>
> Signed-off-by: Su Hui <suhui@nfschina.com>
> ---
> v2:
> - call i40e_vsi_clear_rings() to free rings(thank dan carpenter for
> pointing out this).
Looks okay now.
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] i40e: add an error code check in i40e_vsi_setup
2023-10-20 6:56 ` Dan Carpenter
@ 2023-10-20 21:09 ` Jacob Keller
2023-10-23 1:26 ` Su Hui
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Keller @ 2023-10-20 21:09 UTC (permalink / raw)
To: Dan Carpenter, Su Hui
Cc: jesse.brandeburg, anthony.l.nguyen, davem, edumazet, kuba, pabeni,
intel-wired-lan, netdev, linux-kernel, kernel-janitors
On 10/19/2023 11:56 PM, Dan Carpenter wrote:
> On Fri, Oct 20, 2023 at 10:43:09AM +0800, Su Hui wrote:
>> check the value of 'ret' after calling 'i40e_vsi_config_rss'.
>>
>> Signed-off-by: Su Hui <suhui@nfschina.com>
>> ---
>> v2:
>> - call i40e_vsi_clear_rings() to free rings(thank dan carpenter for
>> pointing out this).
>
> Looks okay now.
>
> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
>
> regards,
> dan carpenter
>
>
For some reason this patch doesn't appear to have hit the
intel-wired-lan list and is thus not being recorded in patchwork for IWL.
Su Hui, would you mind please re-sending this so that it gets picked up
by patchwork? Otherwise I'm afraid that it might get lost inbetween when
Tony returns from vacation.
Thanks,
Jake
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] i40e: add an error code check in i40e_vsi_setup
2023-10-20 21:09 ` Jacob Keller
@ 2023-10-23 1:26 ` Su Hui
0 siblings, 0 replies; 4+ messages in thread
From: Su Hui @ 2023-10-23 1:26 UTC (permalink / raw)
To: Jacob Keller
Cc: jesse.brandeburg, anthony.l.nguyen, davem, edumazet, kuba, pabeni,
intel-wired-lan, netdev, linux-kernel, kernel-janitors,
Dan Carpenter
On 2023/10/21 05:09, Jacob Keller wrote:
>
> On 10/19/2023 11:56 PM, Dan Carpenter wrote:
>> On Fri, Oct 20, 2023 at 10:43:09AM +0800, Su Hui wrote:
>>> check the value of 'ret' after calling 'i40e_vsi_config_rss'.
>>>
>>> Signed-off-by: Su Hui <suhui@nfschina.com>
>>> ---
>>> v2:
>>> - call i40e_vsi_clear_rings() to free rings(thank dan carpenter for
>>> pointing out this).
>> Looks okay now.
>>
>> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
>>
>> regards,
>> dan carpenter
>>
>>
> For some reason this patch doesn't appear to have hit the
> intel-wired-lan list and is thus not being recorded in patchwork for IWL.
>
> Su Hui, would you mind please re-sending this so that it gets picked up
> by patchwork? Otherwise I'm afraid that it might get lost inbetween when
> Tony returns from vacation.
Sorry for the late reply, I have already resent it[1].
Su Hui
[1] https://lore.kernel.org/all/20231023012024.18757-1-suhui@nfschina.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-23 1:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 2:43 [PATCH v2] i40e: add an error code check in i40e_vsi_setup Su Hui
2023-10-20 6:56 ` Dan Carpenter
2023-10-20 21:09 ` Jacob Keller
2023-10-23 1:26 ` Su Hui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox