pmd_bond: fix mac address update for ACTIVE_BACKUP, TLB and ALB modes

Message ID 20200617190248.25858-1-log0div0@gmail.com (mailing list archive)
State Rejected, archived
Delegated to: Ferruh Yigit
Headers
Series pmd_bond: fix mac address update for ACTIVE_BACKUP, TLB and ALB modes |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/Intel-compilation fail Compilation issues

Commit Message

Sergey Lvov June 17, 2020, 7:02 p.m. UTC
  It seems to be a typo

Signed-off-by: Sergey Lvov <log0div0@gmail.com>
---
 drivers/net/bonding/rte_eth_bond_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Chas Williams June 18, 2020, 8:32 p.m. UTC | #1
Yes, this does look like a typo on someone's part.

Please change use net/bonding: instead of pmd_bond:
Please add a Fixes: line
Please add a Cc: stable@dpdk.org

On 6/17/20 3:02 PM, Sergey Lvov wrote:
 > It seems to be a typo
 >
 > Signed-off-by: Sergey Lvov <log0div0@gmail.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 612a64599..3ef0df84a 100644
 > --- a/drivers/net/bonding/rte_eth_bond_pmd.c
 > +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
 > @@ -1533,7 +1533,7 @@ mac_address_slaves_update(struct rte_eth_dev 
*bonded_eth_dev)
 >   			if (internals->slaves[i].port_id ==
 >   					internals->current_primary_port) {
 >   				if (rte_eth_dev_default_mac_addr_set(
 > -						internals->primary_port,
 > +						internals->current_primary_port,
 >   						bonded_eth_dev->data->mac_addrs)) {
 >   					RTE_BOND_LOG(ERR, "Failed to update port Id %d MAC address",
 >   							internals->current_primary_port);
 >
  
Wei Hu (Xavier) June 19, 2020, 1:19 a.m. UTC | #2
Hi, Chas Williams & Sergey Lvov

There was a two-patch series about bonding those are still in reviewing 
state,

and the one of them includes the identical modification. Thanks.

http://patches.dpdk.org/patch/68742/


The series include two patches:
http://patches.dpdk.org/patch/68742/
http://patches.dpdk.org/patch/68743/

   Best Regards
Xavier


On 2020/6/19 4:32, Chas Williams wrote:
> Yes, this does look like a typo on someone's part.
>
> Please change use net/bonding: instead of pmd_bond:
> Please add a Fixes: line
> Please add a Cc: stable@dpdk.org
>
> On 6/17/20 3:02 PM, Sergey Lvov wrote:
> > It seems to be a typo
> >
> > Signed-off-by: Sergey Lvov <log0div0@gmail.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 612a64599..3ef0df84a 100644
> > --- a/drivers/net/bonding/rte_eth_bond_pmd.c
> > +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
> > @@ -1533,7 +1533,7 @@ mac_address_slaves_update(struct rte_eth_dev 
> *bonded_eth_dev)
> >               if (internals->slaves[i].port_id ==
> >                       internals->current_primary_port) {
> >                   if (rte_eth_dev_default_mac_addr_set(
> > -                        internals->primary_port,
> > +                        internals->current_primary_port,
> > bonded_eth_dev->data->mac_addrs)) {
> >                       RTE_BOND_LOG(ERR, "Failed to update port Id %d 
> MAC address",
> > internals->current_primary_port);
> >
>
  
Wei Hu (Xavier) July 11, 2020, 10:01 a.m. UTC | #3
Hi, Sergey Lvov


There was a two-patch series about bonding those are still in reviewing 
state,

and the one of them includes the identical modification.

http://patches.dpdk.org/patch/68742/

Would you like to review it and give 'Signed-off-by' on the patch if 
there are no object?

Thanks, Xavier


On 2020/6/19 9:19, Wei Hu (Xavier) wrote:
> Hi, Chas Williams & Sergey Lvov
>
> There was a two-patch series about bonding those are still in 
> reviewing state,
>
> and the one of them includes the identical modification. Thanks.
>
> http://patches.dpdk.org/patch/68742/
>
>
> The series include two patches:
> http://patches.dpdk.org/patch/68742/
> http://patches.dpdk.org/patch/68743/
>
>   Best Regards
> Xavier
>
>
> On 2020/6/19 4:32, Chas Williams wrote:
>> Yes, this does look like a typo on someone's part.
>>
>> Please change use net/bonding: instead of pmd_bond:
>> Please add a Fixes: line
>> Please add a Cc: stable@dpdk.org
>>
>> On 6/17/20 3:02 PM, Sergey Lvov wrote:
>> > It seems to be a typo
>> >
>> > Signed-off-by: Sergey Lvov <log0div0@gmail.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 612a64599..3ef0df84a 100644
>> > --- a/drivers/net/bonding/rte_eth_bond_pmd.c
>> > +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
>> > @@ -1533,7 +1533,7 @@ mac_address_slaves_update(struct rte_eth_dev 
>> *bonded_eth_dev)
>> >               if (internals->slaves[i].port_id ==
>> >                       internals->current_primary_port) {
>> >                   if (rte_eth_dev_default_mac_addr_set(
>> > -                        internals->primary_port,
>> > + internals->current_primary_port,
>> > bonded_eth_dev->data->mac_addrs)) {
>> >                       RTE_BOND_LOG(ERR, "Failed to update port Id 
>> %d MAC address",
>> > internals->current_primary_port);
>> >
>>
>
  
Wei Hu (Xavier) July 17, 2020, 11:43 a.m. UTC | #4
Hi, Sergey Lvov

   Thanks for you reporting issues,

   The identical modification had been applied to dpdk-next-net.

http://patches.dpdk.org/patch/68742/

        repo:  http://dpdk.org/git/next/dpdk-next-net

        f109ce2c5c6b114f533ffcb69460385ac04db215

        net/bonding: fix MAC address when switching active port

   Could you like to 'Signed-off-by' on the patch if there are no object?


Thanks, Xavier


On 2020/7/11 18:01, Wei Hu (Xavier) wrote:
>
> Hi, Sergey Lvov
>
>
> There was a two-patch series about bonding those are still in 
> reviewing state,
>
> and the one of them includes the identical modification.
>
> http://patches.dpdk.org/patch/68742/
>
> Would you like to review it and give 'Signed-off-by' on the patch if 
> there are no object?
>
> Thanks, Xavier
>
>
> On 2020/6/19 9:19, Wei Hu (Xavier) wrote:
>> Hi, Chas Williams & Sergey Lvov
>>
>> There was a two-patch series about bonding those are still in 
>> reviewing state,
>>
>> and the one of them includes the identical modification. Thanks.
>>
>> http://patches.dpdk.org/patch/68742/
>>
>>
>> The series include two patches:
>> http://patches.dpdk.org/patch/68742/
>> http://patches.dpdk.org/patch/68743/
>>
>>   Best Regards
>> Xavier
>>
>>
>> On 2020/6/19 4:32, Chas Williams wrote:
>>> Yes, this does look like a typo on someone's part.
>>>
>>> Please change use net/bonding: instead of pmd_bond:
>>> Please add a Fixes: line
>>> Please add a Cc: stable@dpdk.org
>>>
>>> On 6/17/20 3:02 PM, Sergey Lvov wrote:
>>> > It seems to be a typo
>>> >
>>> > Signed-off-by: Sergey Lvov <log0div0@gmail.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 612a64599..3ef0df84a 100644
>>> > --- a/drivers/net/bonding/rte_eth_bond_pmd.c
>>> > +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
>>> > @@ -1533,7 +1533,7 @@ mac_address_slaves_update(struct rte_eth_dev 
>>> *bonded_eth_dev)
>>> >               if (internals->slaves[i].port_id ==
>>> >                       internals->current_primary_port) {
>>> >                   if (rte_eth_dev_default_mac_addr_set(
>>> > -                        internals->primary_port,
>>> > + internals->current_primary_port,
>>> > bonded_eth_dev->data->mac_addrs)) {
>>> >                       RTE_BOND_LOG(ERR, "Failed to update port Id 
>>> %d MAC address",
>>> > internals->current_primary_port);
>>> >
>>>
>>
>
  

Patch

diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 612a64599..3ef0df84a 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -1533,7 +1533,7 @@  mac_address_slaves_update(struct rte_eth_dev *bonded_eth_dev)
 			if (internals->slaves[i].port_id ==
 					internals->current_primary_port) {
 				if (rte_eth_dev_default_mac_addr_set(
-						internals->primary_port,
+						internals->current_primary_port,
 						bonded_eth_dev->data->mac_addrs)) {
 					RTE_BOND_LOG(ERR, "Failed to update port Id %d MAC address",
 							internals->current_primary_port);