patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@amd.com>
To: "Min Hu (Connor)" <humin29@huawei.com>, jilei <jilei8@huawei.com>,
	<dev@dpdk.org>
Cc: <chas3@att.com>, <zhaohui8@huawei.com>, <yu.yutao@huawei.com>,
	<hejiajun@huawei.com>, <liucheng11@huawei.com>,
	<yinpeijun@huawei.com>, <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/bonding:fix balance-xor link down stack overflow
Date: Fri, 20 May 2022 16:33:53 +0100	[thread overview]
Message-ID: <c4e9a551-410e-d015-e687-5a380d4b76f9@amd.com> (raw)
In-Reply-To: <e76b4818-6473-0cfb-0846-4904a268891c@huawei.com>

On 8/10/2021 8:50 AM, Min Hu (Connor) wrote:

> 在 2021/8/10 14:43, jilei 写道:
>> When slave link down, deactivate_slave will internals->active_slaves
>> and internals->active_slave_count.Active_slave in bond_ethdev_rx_burst
>> may out of range in internals->active_slaves.It will get bond's port_id
>> cause stack overflow
>>
>> Cc: stable@dpdk.org
>> Signed-off-by: jilei <jilei8@huawei.com>
>> ---
>>   drivers/net/bonding/rte_eth_bond_pmd.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c 
>> b/drivers/net/bonding/rte_eth_bond_pmd.c
>> index a6755661c4..46f2c42d60 100644
>> --- a/drivers/net/bonding/rte_eth_bond_pmd.c
>> +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
>> @@ -82,7 +82,7 @@ bond_ethdev_rx_burst(void *queue, struct rte_mbuf 
>> **bufs, uint16_t nb_pkts)
>>                        bufs + num_rx_total, nb_pkts);
>>           num_rx_total += num_rx_slave;
>>           nb_pkts -= num_rx_slave;
>> -        if (++active_slave == slave_count)
>> +        if (++active_slave >= slave_count)
>>               active_slave = 0;
>>       }
>>
 >
 > Hi,
 >      Your patch is OK, but the description is misleading and has
 > syntax errors. Please fix it ,thanks.
 >

Hi jilei,

The patch is waiting for a minor update from you, can you please send a 
new version with the requested change?

Btw, please add your sign off in following format:
Signed-off-by: Name Surname <email@address>

Thanks,
ferruh

  reply	other threads:[~2022-05-20 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10  6:43 [dpdk-stable] " jilei
2021-08-10  7:50 ` Min Hu (Connor)
2022-05-20 15:33   ` Ferruh Yigit [this message]
2022-07-18 13:08 ` [dpdk-dev] [PATCH] net/bonding: fix array overflow in Rx burst Yunjian Wang
2022-07-20  1:28   ` 答复: " humin (Q)
2022-08-25 16:39     ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4e9a551-410e-d015-e687-5a380d4b76f9@amd.com \
    --to=ferruh.yigit@amd.com \
    --cc=chas3@att.com \
    --cc=dev@dpdk.org \
    --cc=hejiajun@huawei.com \
    --cc=humin29@huawei.com \
    --cc=jilei8@huawei.com \
    --cc=liucheng11@huawei.com \
    --cc=stable@dpdk.org \
    --cc=yinpeijun@huawei.com \
    --cc=yu.yutao@huawei.com \
    --cc=zhaohui8@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).