bonding: pair enable_port with slave_arr_updates
Subsystems (3)
PATCH v3 1/1 bonding: pair enable_port with slave_arr_updates
When 803.2ad mode enables a participating port, it should update the slave-array. I have observed that the member links are participating and are part of the active aggregator while the traffic is egressing via only one member link (in a case where two links are participating). Via krpobes I discovered that that slave-arr has only one link added while the other participating link wasn't part of the slave-arr.
I couldn't see what caused that situation but the simple code-walk through provided me hints that the enable_port wasn't always associated with the slave-array update.
--- drivers/net/bonding/bond_3ad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/bonding/bond_3ad.c +2 -1
@@ -1021,8 +1021,8 @@ static void ad_mux_machine(struct port *port, bool *update_slave_arr)if (port->aggregator && port->aggregator->is_active && !__port_is_enabled (port)) { -__enable_port (port); + *update_slave_arr = true; } }break ;
@@ -1779,6 +1779,7 @@ static void ad_agg_selection_logic(struct aggregator *agg, port = port->next_port_in_aggregator) {__enable_port (port); } + *update_slave_arr = true; } }
Signature · 1 line
2.35.0.263.gb82422642f-goog
Quoted 7 lines · Mahesh Bandewar
When 803.2ad mode enables a participating port, it should update the slave-array. I have observed that the member links are participating and are part of the active aggregator while the traffic is egressing via only one member link (in a case where two links are participating). Via krpobes I discovered that that slave-arr has only one link added while the other participating link wasn't part of the slave-arr.
Quoted 5 lines
I couldn't see what caused that situation but the simple code-walk through provided me hints that the
enable_portwasn't always associated with the slave-array update.Signed-off-by Mahesh Bandewar <[email protected]>
Quoted 29 lines
---
drivers/net/bonding/bond_3ad.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/bonding/bond_3ad.c +2
-1@@ -1021,8 +1021,8 @@ static void ad_mux_machine(struct port *port, bool *update_slave_arr)if (port->aggregator && port->aggregator->is_active && !__port_is_enabled (port)) { -__enable_port (port); + *update_slave_arr = true; } }break ;@@ -1779,6 +1779,7 @@ static void ad_agg_selection_logic(struct aggregator *agg, port = port->next_port_in_aggregator) {__enable_port (port); } + *update_slave_arr = true; } }Signature · 1 line
2.35.0.263.gb82422642f-goog
Jakub Kicinski
maintainerQuoted 7 lines · On Thu, 03 Feb 2022 16:50:30 -0800 Jay Vosburgh wrote:
Quoted 5 lines · Mahesh Bandewar
When 803.2ad mode enables a participating port, it should update the slave-array. I have observed that the member links are participating and are part of the active aggregator while the traffic is egressing via only one member link (in a case where two links are participating). Via krpobes I discovered that that slave-arr has only one link added while
kprobes
that that
The commit message would use some proof reading in general.
Quoted 9 lines
Quoted 7 lines
the other participating link wasn't part of the slave-arr.
I couldn't see what caused that situation but the simple code-walk through provided me hints that the
enable_portwasn't always associated with the slave-array update.Signed-off-by Mahesh Bandewar <[email protected]>Acked-by Jay Vosburgh <[email protected]>
Quacks like a fix, no? It's tagged for net-next and no fixes tag, is there a reason why?
Quoted 10 lines · Jakub Kicinski
Quoted 7 lines · On Thu, 03 Feb 2022 16:50:30 -0800 Jay Vosburgh wrote:
Quoted 5 lines · Mahesh Bandewar
When 803.2ad mode enables a participating port, it should update the slave-array. I have observed that the member links are participating and are part of the active aggregator while the traffic is egressing via only one member link (in a case where two links are participating). Via krpobes I discovered that that slave-arr has only one link added while
Quoted 5 lines
kprobes
that thatThe commit message would use some proof reading in general.
:( will fix the typo and send it to you again.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
the other participating link wasn't part of the slave-arr.
I couldn't see what caused that situation but the simple code-walk through provided me hints that the
enable_portwasn't always associated with the slave-array update.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Mahesh Bandewar <[email protected]>Acked-by Jay Vosburgh <[email protected]>Quacks like a fix, no? It's tagged for net-next and no fixes tag, is there a reason why?
Though this fixes some corner cases, I couldn't find anything obvious that I can report as "fixes" hence decided otherwise. Does that make sense?
thanks,
--mahesh..
Jakub Kicinski
maintainerQuoted 7 lines · On Sun, 6 Feb 2022 21:52:11 -0800 Mahesh Bandewar (महेश बंडेवार) wrote:
Quoted 2 lines · Jakub Kicinski
Quacks like a fix, no? It's tagged for net-next and no fixes tag, is there a reason why?
Though this fixes some corner cases, I couldn't find anything obvious that I can report as "fixes" hence decided otherwise. Does that make sense?
So it's was not introduced in the refactorings which added update_slave_arr? If the problem existed forever we can put:
it's just an indication how far back the backporting should go. For anything older than oldest LTS (4.9) the exact tag probably doesn't matter all that much.
Jakub Kicinski <[email protected]> wrote:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Quoted 1 line
On Sun, 6 Feb 2022 21:52:11 -0800 Mahesh Bandewar (=E0=A4=AE=E0=A4=B9=E0=
=A5=87=E0=A4=B6 =E0=A4=AC=E0=A4=82=E0=A4=A1=E0=A5=87=E0=A4=B5=E0=A4=BE=E0=
Quoted 8 lines · =A4=B0) wrote:
Quoted 7 lines · Jakub Kicinski
Quoted 2 lines
Quacks like a fix, no? It's tagged for net-next and no fixes tag, is there a reason why?=20=20
=20
Though this fixes some corner cases, I couldn't find anything obvious that I can report as "fixes" hence decided otherwise. Does that make sense?
Quoted 8 lines
So it's was not introduced in the refactorings which added
update_slave_arr? If the problem existed forever we can put:Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")it's just an indication how far back the backporting should go. For anything older than oldest LTS (4.9) the exact tag probably doesn't matter all that much.
I think the correct Fixes line would be the commit that
introduces the array logic in the first place, which I believe is:
e xmit_hash")
This dates to 3.18. -J
---
-Jay Vosburgh, [email protected]
Quoted 26 lines · Jay Vosburgh
Jakub Kicinski <[email protected]> wrote:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printableQuoted 1 line
On Sun, 6 Feb 2022 21:52:11 -0800 Mahesh Bandewar (=E0=A4=AE=E0=A4=B9=E0=
=A5=87=E0=A4=B6 =E0=A4=AC=E0=A4=82=E0=A4=A1=E0=A5=87=E0=A4=B5=E0=A4=BE=E0=
Quoted 8 lines · =A4=B0) wrote:
Quoted 7 lines · Jakub Kicinski
Quoted 2 lines
Quacks like a fix, no? It's tagged for net-next and no fixes tag, is there a reason why?=20=20
=20
Though this fixes some corner cases, I couldn't find anything obvious that I can report as "fixes" hence decided otherwise. Does that make sense?Quoted 8 lines
So it's was not introduced in the refactorings which added
update_slave_arr? If the problem existed forever we can put:Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")it's just an indication how far back the backporting should go. For anything older than oldest LTS (4.9) the exact tag probably doesn't matter all that much.
Quoted 8 lines
I think the correct Fixes line would be the commit that
introduces the array logic in the first place, which I believe is:Fixes ee6377147409 ("bonding: Simplify the xmit function for modes that us=e
xmit_hash")This dates to 3.18.
Will do. Thank you both.
Quoted 4 lines
-J---
-Jay Vosburgh, [email protected]