* [dpdk-dev] [PATCH] net/qede: remove dead code
@ 2020-07-17 11:16 wangyunjian
2020-07-21 12:12 ` Jerin Jacob
2020-07-21 21:43 ` [dpdk-dev] [EXT] " Rasesh Mody
0 siblings, 2 replies; 7+ messages in thread
From: wangyunjian @ 2020-07-17 11:16 UTC (permalink / raw)
To: dev; +Cc: rmody, shshaikh, jerry.lilijun, xudingke, Yunjian Wang, stable
From: Yunjian Wang <wangyunjian@huawei.com>
This patch fixes (Logically dead code) coverity issue.
Coverity issue: 261777, 261778
Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
---
drivers/net/qede/qede_rxtx.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 9878ba50e..ea264f59d 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -647,8 +647,6 @@ int qede_alloc_fp_resc(struct qede_dev *qdev)
for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
fp = &qdev->fp_array[sb_idx];
- if (!fp)
- continue;
fp->sb_info = rte_calloc("sb", 1, sizeof(struct ecore_sb_info),
RTE_CACHE_LINE_SIZE);
if (!fp->sb_info) {
@@ -678,8 +676,6 @@ void qede_dealloc_fp_resc(struct rte_eth_dev *eth_dev)
for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
fp = &qdev->fp_array[sb_idx];
- if (!fp)
- continue;
DP_INFO(edev, "Free sb_info index 0x%x\n",
fp->sb_info->igu_sb_id);
if (fp->sb_info) {
--
2.23.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH] net/qede: remove dead code
2020-07-17 11:16 [dpdk-dev] [PATCH] net/qede: remove dead code wangyunjian
@ 2020-07-21 12:12 ` Jerin Jacob
2020-07-21 21:43 ` [dpdk-dev] [EXT] " Rasesh Mody
1 sibling, 0 replies; 7+ messages in thread
From: Jerin Jacob @ 2020-07-21 12:12 UTC (permalink / raw)
To: wangyunjian
Cc: dpdk-dev, Rasesh Mody, Shahed Shaikh, Lilijun (Jerry),
xudingke, dpdk stable
On Fri, Jul 17, 2020 at 4:47 PM wangyunjian <wangyunjian@huawei.com> wrote:
>
> From: Yunjian Wang <wangyunjian@huawei.com>
>
> This patch fixes (Logically dead code) coverity issue.
>
> Coverity issue: 261777, 261778
> Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
> Cc: stable@dpdk.org
@Rasesh Mody
Could you Ack this change to merge it?
> Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
> ---
> drivers/net/qede/qede_rxtx.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
> index 9878ba50e..ea264f59d 100644
> --- a/drivers/net/qede/qede_rxtx.c
> +++ b/drivers/net/qede/qede_rxtx.c
> @@ -647,8 +647,6 @@ int qede_alloc_fp_resc(struct qede_dev *qdev)
>
> for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
> fp = &qdev->fp_array[sb_idx];
> - if (!fp)
> - continue;
> fp->sb_info = rte_calloc("sb", 1, sizeof(struct ecore_sb_info),
> RTE_CACHE_LINE_SIZE);
> if (!fp->sb_info) {
> @@ -678,8 +676,6 @@ void qede_dealloc_fp_resc(struct rte_eth_dev *eth_dev)
>
> for (sb_idx = 0; sb_idx < QEDE_RXTX_MAX(qdev); sb_idx++) {
> fp = &qdev->fp_array[sb_idx];
> - if (!fp)
> - continue;
> DP_INFO(edev, "Free sb_info index 0x%x\n",
> fp->sb_info->igu_sb_id);
> if (fp->sb_info) {
> --
> 2.23.0
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [EXT] [PATCH] net/qede: remove dead code
2020-07-17 11:16 [dpdk-dev] [PATCH] net/qede: remove dead code wangyunjian
2020-07-21 12:12 ` Jerin Jacob
@ 2020-07-21 21:43 ` Rasesh Mody
2020-07-22 7:45 ` Jerin Jacob
2020-07-24 4:23 ` Jerin Jacob
1 sibling, 2 replies; 7+ messages in thread
From: Rasesh Mody @ 2020-07-21 21:43 UTC (permalink / raw)
To: wangyunjian, dev
Cc: Jerin Jacob, Shahed Shaikh, jerry.lilijun, xudingke, stable
>From: wangyunjian <wangyunjian@huawei.com>
>Sent: Friday, July 17, 2020 4:16 AM
>
>From: Yunjian Wang <wangyunjian@huawei.com>
>
>This patch fixes (Logically dead code) coverity issue.
>
>Coverity issue: 261777, 261778
>Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
>Cc: stable@dpdk.org
>
>Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
>---
Acked-by: Rasesh Mody <rmody@marvell.com>
Thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [EXT] [PATCH] net/qede: remove dead code
2020-07-21 21:43 ` [dpdk-dev] [EXT] " Rasesh Mody
@ 2020-07-22 7:45 ` Jerin Jacob
2020-07-22 12:15 ` wangyunjian
2020-07-24 4:23 ` Jerin Jacob
1 sibling, 1 reply; 7+ messages in thread
From: Jerin Jacob @ 2020-07-22 7:45 UTC (permalink / raw)
To: Rasesh Mody
Cc: wangyunjian, dev, Shahed Shaikh, jerry.lilijun, xudingke, stable
On Wed, Jul 22, 2020 at 3:14 AM Rasesh Mody <rmody@marvell.com> wrote:
>
> >From: wangyunjian <wangyunjian@huawei.com>
> >Sent: Friday, July 17, 2020 4:16 AM
> >
> >From: Yunjian Wang <wangyunjian@huawei.com>
> >
> >This patch fixes (Logically dead code) coverity issue.
> >
> >Coverity issue: 261777, 261778
> >Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
> >Cc: stable@dpdk.org
> >
> >Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
> >---
>
> Acked-by: Rasesh Mody <rmody@marvell.com>
There is build issue reported with this patch by CI for qede. Please
check it is valid or not
http://mails.dpdk.org/archives/test-report/2020-July/145267.html
>
> Thanks!
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [EXT] [PATCH] net/qede: remove dead code
2020-07-22 7:45 ` Jerin Jacob
@ 2020-07-22 12:15 ` wangyunjian
2020-07-22 12:29 ` Ferruh Yigit
0 siblings, 1 reply; 7+ messages in thread
From: wangyunjian @ 2020-07-22 12:15 UTC (permalink / raw)
To: Jerin Jacob, Rasesh Mody
Cc: dev, Shahed Shaikh, Lilijun (Jerry), xudingke, stable
> -----Original Message-----
> From: Jerin Jacob [mailto:jerinjacobk@gmail.com]
> Sent: Wednesday, July 22, 2020 3:45 PM
> To: Rasesh Mody <rmody@marvell.com>
> Cc: wangyunjian <wangyunjian@huawei.com>; dev@dpdk.org; Shahed Shaikh
> <shshaikh@marvell.com>; Lilijun (Jerry) <jerry.lilijun@huawei.com>; xudingke
> <xudingke@huawei.com>; stable@dpdk.org
> Subject: Re: [EXT] [dpdk-dev] [PATCH] net/qede: remove dead code
>
> On Wed, Jul 22, 2020 at 3:14 AM Rasesh Mody <rmody@marvell.com> wrote:
> >
> > >From: wangyunjian <wangyunjian@huawei.com>
> > >Sent: Friday, July 17, 2020 4:16 AM
> > >
> > >From: Yunjian Wang <wangyunjian@huawei.com>
> > >
> > >This patch fixes (Logically dead code) coverity issue.
> > >
> > >Coverity issue: 261777, 261778
> > >Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
> > >Cc: stable@dpdk.org
> > >
> > >Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
> > >---
> >
> > Acked-by: Rasesh Mody <rmody@marvell.com>
>
> There is build issue reported with this patch by CI for qede. Please check it is
> valid or not http://mails.dpdk.org/archives/test-report/2020-July/145267.html
I've already checked. I don't know the reason why the codes on both sides are different.
The origin code:
fprintf(stderr,"Can not write all of dump data bytes=%zd len=%zd\n",
The CI code:
fprintf(stderr, "Can not write all of dump data bytes=%ld len=%ld\n",
>
> >
> > Thanks!
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [EXT] [PATCH] net/qede: remove dead code
2020-07-22 12:15 ` wangyunjian
@ 2020-07-22 12:29 ` Ferruh Yigit
0 siblings, 0 replies; 7+ messages in thread
From: Ferruh Yigit @ 2020-07-22 12:29 UTC (permalink / raw)
To: wangyunjian, Jerin Jacob, Rasesh Mody
Cc: dev, Shahed Shaikh, Lilijun (Jerry), xudingke, stable
On 7/22/2020 1:15 PM, wangyunjian wrote:
>> -----Original Message-----
>> From: Jerin Jacob [mailto:jerinjacobk@gmail.com]
>> Sent: Wednesday, July 22, 2020 3:45 PM
>> To: Rasesh Mody <rmody@marvell.com>
>> Cc: wangyunjian <wangyunjian@huawei.com>; dev@dpdk.org; Shahed Shaikh
>> <shshaikh@marvell.com>; Lilijun (Jerry) <jerry.lilijun@huawei.com>; xudingke
>> <xudingke@huawei.com>; stable@dpdk.org
>> Subject: Re: [EXT] [dpdk-dev] [PATCH] net/qede: remove dead code
>>
>> On Wed, Jul 22, 2020 at 3:14 AM Rasesh Mody <rmody@marvell.com> wrote:
>>>
>>>> From: wangyunjian <wangyunjian@huawei.com>
>>>> Sent: Friday, July 17, 2020 4:16 AM
>>>>
>>>> From: Yunjian Wang <wangyunjian@huawei.com>
>>>>
>>>> This patch fixes (Logically dead code) coverity issue.
>>>>
>>>> Coverity issue: 261777, 261778
>>>> Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
>>>> Cc: stable@dpdk.org
>>>>
>>>> Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
>>>> ---
>>>
>>> Acked-by: Rasesh Mody <rmody@marvell.com>
>>
>> There is build issue reported with this patch by CI for qede. Please check it is
>> valid or not http://mails.dpdk.org/archives/test-report/2020-July/145267.html
>
> I've already checked. I don't know the reason why the codes on both sides are different.
>
> The origin code:
> fprintf(stderr,"Can not write all of dump data bytes=%zd len=%zd\n",
>
> The CI code:
> fprintf(stderr, "Can not write all of dump data bytes=%ld len=%ld\n",
>
CI run is on top of the 'mrvl' tree (DPDK git baseline:
Repo:dpdk-next-net-mrvl), and above part may be fixed while pulling to the
'next-net'.
Anyway the latest code looks good (for above change), also the error is
unrelated to your patch. So a false positive for this patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [EXT] [PATCH] net/qede: remove dead code
2020-07-21 21:43 ` [dpdk-dev] [EXT] " Rasesh Mody
2020-07-22 7:45 ` Jerin Jacob
@ 2020-07-24 4:23 ` Jerin Jacob
1 sibling, 0 replies; 7+ messages in thread
From: Jerin Jacob @ 2020-07-24 4:23 UTC (permalink / raw)
To: Rasesh Mody, Ferruh Yigit
Cc: wangyunjian, dev, Shahed Shaikh, jerry.lilijun, xudingke, stable
On Wed, Jul 22, 2020 at 3:14 AM Rasesh Mody <rmody@marvell.com> wrote:
>
> >From: wangyunjian <wangyunjian@huawei.com>
> >Sent: Friday, July 17, 2020 4:16 AM
> >
> >From: Yunjian Wang <wangyunjian@huawei.com>
> >
> >This patch fixes (Logically dead code) coverity issue.
> >
> >Coverity issue: 261777, 261778
> >Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
> >Cc: stable@dpdk.org
> >
> >Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
> >---
>
> Acked-by: Rasesh Mody <rmody@marvell.com>
Applied to dpdk-next-net-mrvl/master. Thanks
>
> Thanks!
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-07-24 4:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 11:16 [dpdk-dev] [PATCH] net/qede: remove dead code wangyunjian
2020-07-21 12:12 ` Jerin Jacob
2020-07-21 21:43 ` [dpdk-dev] [EXT] " Rasesh Mody
2020-07-22 7:45 ` Jerin Jacob
2020-07-22 12:15 ` wangyunjian
2020-07-22 12:29 ` Ferruh Yigit
2020-07-24 4:23 ` Jerin Jacob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).