* [PATCH net-next] bonding: 3ad: remove unused TX state
@ 2026-10-06 10:32 Timur Stukan
2026-10-06 16:29 ` Fernando Fernandez Mancera
2026-10-09 0:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Timur Stukan @ 2026-10-06 10:32 UTC (permalink / raw)
To: jv, andrew+netdev, davem, edumazet, kuba, pabeni
Cc: horms, netdev, linux-kernel, fmancera, Timur Stukan
The sm_tx_state field of struct port and tx_states_t enum
were introduced in the initial 802.3ad implementation but
have never had any users.
The TX machine uses ntt and sm_tx_timer_counter instead.
Remove them.
Signed-off-by: Timur Stukan <timur.stukan.linux@gmail.com>
---
drivers/net/bonding/bond_3ad.c | 1 -
include/net/bond_3ad.h | 7 -------
2 files changed, 8 deletions(-)
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
index b8e4b4d68dd6..d91533b80996 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -2071,7 +2071,6 @@ static void ad_initialize_port(struct port *port, const struct bond_params *bond
port->sm_periodic_timer_counter = 0;
port->sm_mux_state = 0;
port->sm_mux_timer_counter = 0;
- port->sm_tx_state = 0;
port->aggregator = NULL;
port->next_port_in_aggregator = NULL;
port->transaction_id = 0;
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h
index ef667dff2972..9e548d3dca21 100644
--- a/include/net/bond_3ad.h
+++ b/include/net/bond_3ad.h
@@ -60,12 +60,6 @@ typedef enum {
AD_MUX_COLLECTING_DISTRIBUTING /* mux machine */
} mux_states_t;
-/* tx machine states(43.4.15 in the 802.3ad standard) */
-typedef enum {
- AD_TX_DUMMY,
- AD_TRANSMIT /* tx Machine */
-} tx_states_t;
-
/* churn machine states(43.4.17 in the 802.3ad standard) */
typedef enum {
AD_CHURN_MONITOR, /* monitoring for churn */
@@ -231,7 +225,6 @@ typedef struct port {
u16 sm_periodic_timer_counter; /* state machine periodic timer counter */
mux_states_t sm_mux_state; /* state machine mux state */
u16 sm_mux_timer_counter; /* state machine mux timer counter */
- tx_states_t sm_tx_state; /* state machine tx state */
u16 sm_tx_timer_counter; /* state machine tx timer counter
* (always on - enter to transmit
* state 3 time per second)
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] bonding: 3ad: remove unused TX state
2026-10-06 10:32 [PATCH net-next] bonding: 3ad: remove unused TX state Timur Stukan
@ 2026-10-06 16:29 ` Fernando Fernandez Mancera
2026-10-09 0:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Fernando Fernandez Mancera @ 2026-10-06 16:29 UTC (permalink / raw)
To: Timur Stukan, jv, andrew+netdev, davem, edumazet, kuba, pabeni
Cc: horms, netdev, linux-kernel
On 10/6/26 12:32 PM, Timur Stukan wrote:
> The sm_tx_state field of struct port and tx_states_t enum
> were introduced in the initial 802.3ad implementation but
> have never had any users.
> The TX machine uses ntt and sm_tx_timer_counter instead.
>
> Remove them.
>
> Signed-off-by: Timur Stukan <timur.stukan.linux@gmail.com>
Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] bonding: 3ad: remove unused TX state
2026-10-06 10:32 [PATCH net-next] bonding: 3ad: remove unused TX state Timur Stukan
2026-10-06 16:29 ` Fernando Fernandez Mancera
@ 2026-10-09 0:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-10-09 0:00 UTC (permalink / raw)
To: Timur Stukan
Cc: jv, andrew+netdev, davem, edumazet, kuba, pabeni, horms, netdev,
linux-kernel, fmancera
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 6 Oct 2026 13:32:07 +0300 you wrote:
> The sm_tx_state field of struct port and tx_states_t enum
> were introduced in the initial 802.3ad implementation but
> have never had any users.
> The TX machine uses ntt and sm_tx_timer_counter instead.
>
> Remove them.
>
> [...]
Here is the summary with links:
- [net-next] bonding: 3ad: remove unused TX state
https://git.kernel.org/netdev/net-next/c/9823271dbe1e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-09 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 10:32 [PATCH net-next] bonding: 3ad: remove unused TX state Timur Stukan
2026-10-06 16:29 ` Fernando Fernandez Mancera
2026-10-09 0:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox