* [PATCH] batman-adv: no need to start/stop queue on soft-iface
@ 2025-03-17 10:54 Antonio Quartulli
2025-03-17 11:16 ` Sven Eckelmann
0 siblings, 1 reply; 4+ messages in thread
From: Antonio Quartulli @ 2025-03-17 10:54 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
The batman-adv soft-iface is flagged with IFF_NO_QUEUE,
therefore there is no reason to start/stop any queue in
ndo_open/close.
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
---
net/batman-adv/soft-interface.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index c4ce8ea4..11e5e013 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -77,18 +77,6 @@ int batadv_skb_head_push(struct sk_buff *skb, unsigned int len)
return 0;
}
-static int batadv_interface_open(struct net_device *dev)
-{
- netif_start_queue(dev);
- return 0;
-}
-
-static int batadv_interface_release(struct net_device *dev)
-{
- netif_stop_queue(dev);
- return 0;
-}
-
/**
* batadv_sum_counter() - Sum the cpu-local counters for index 'idx'
* @bat_priv: the bat priv with all the soft interface information
@@ -906,8 +894,6 @@ static int batadv_softif_slave_del(struct net_device *dev,
static const struct net_device_ops batadv_netdev_ops = {
.ndo_init = batadv_softif_init_late,
- .ndo_open = batadv_interface_open,
- .ndo_stop = batadv_interface_release,
.ndo_get_stats = batadv_interface_stats,
.ndo_vlan_rx_add_vid = batadv_interface_add_vid,
.ndo_vlan_rx_kill_vid = batadv_interface_kill_vid,
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] batman-adv: no need to start/stop queue on soft-iface
2025-03-17 10:54 [PATCH] batman-adv: no need to start/stop queue on soft-iface Antonio Quartulli
@ 2025-03-17 11:16 ` Sven Eckelmann
2025-03-17 12:39 ` [PATCH v2] " Antonio Quartulli
2025-03-17 12:41 ` [PATCH] " Antonio Quartulli
0 siblings, 2 replies; 4+ messages in thread
From: Sven Eckelmann @ 2025-03-17 11:16 UTC (permalink / raw)
To: b.a.t.m.a.n, Antonio Quartulli
[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]
On Monday, 17 March 2025 11:54:34 CET Antonio Quartulli wrote:
> The batman-adv soft-iface is flagged with IFF_NO_QUEUE,
> therefore there is no reason to start/stop any queue in
> ndo_open/close.
>
> Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
$ b4 shazam -s 20250317105434.17545-1-antonio@mandelbit.com
Grabbing thread from lore.kernel.org/all/20250317105434.17545-1-antonio@mandelbit.com/t.mbox.gz
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 1 messages in the thread
Analyzing 0 code-review messages
Checking attestation on all messages, may take a moment...
---
✓ [PATCH] batman-adv: no need to start/stop queue on soft-iface
+ Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
✓ Signed: DKIM/mandelbit.com
---
Total patches: 1
---
Applying: batman-adv: no need to start/stop queue on soft-iface
Patch failed at 0001 batman-adv: no need to start/stop queue on soft-iface
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
error: net/batman-adv/soft-interface.c: does not exist in index
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Might be related to the fact that soft-interface is now called mesh-interface.
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2] batman-adv: no need to start/stop queue on soft-iface
2025-03-17 11:16 ` Sven Eckelmann
@ 2025-03-17 12:39 ` Antonio Quartulli
2025-03-17 12:41 ` [PATCH] " Antonio Quartulli
1 sibling, 0 replies; 4+ messages in thread
From: Antonio Quartulli @ 2025-03-17 12:39 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
The batman-adv soft-iface is flagged with IFF_NO_QUEUE,
therefore there is no reason to start/stop any queue in
ndo_open/close.
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
---
net/batman-adv/mesh-interface.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/net/batman-adv/mesh-interface.c b/net/batman-adv/mesh-interface.c
index 6d8afff6..c1d7b681 100644
--- a/net/batman-adv/mesh-interface.c
+++ b/net/batman-adv/mesh-interface.c
@@ -77,18 +77,6 @@ int batadv_skb_head_push(struct sk_buff *skb, unsigned int len)
return 0;
}
-static int batadv_interface_open(struct net_device *dev)
-{
- netif_start_queue(dev);
- return 0;
-}
-
-static int batadv_interface_release(struct net_device *dev)
-{
- netif_stop_queue(dev);
- return 0;
-}
-
/**
* batadv_sum_counter() - Sum the cpu-local counters for index 'idx'
* @bat_priv: the bat priv with all the mesh interface information
@@ -890,8 +878,6 @@ static int batadv_meshif_slave_del(struct net_device *dev,
static const struct net_device_ops batadv_netdev_ops = {
.ndo_init = batadv_meshif_init_late,
- .ndo_open = batadv_interface_open,
- .ndo_stop = batadv_interface_release,
.ndo_get_stats = batadv_interface_stats,
.ndo_vlan_rx_add_vid = batadv_interface_add_vid,
.ndo_vlan_rx_kill_vid = batadv_interface_kill_vid,
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] batman-adv: no need to start/stop queue on soft-iface
2025-03-17 11:16 ` Sven Eckelmann
2025-03-17 12:39 ` [PATCH v2] " Antonio Quartulli
@ 2025-03-17 12:41 ` Antonio Quartulli
1 sibling, 0 replies; 4+ messages in thread
From: Antonio Quartulli @ 2025-03-17 12:41 UTC (permalink / raw)
To: Sven Eckelmann, b.a.t.m.a.n
On 17/03/2025 12:16, Sven Eckelmann wrote:
[...]
> Applying: batman-adv: no need to start/stop queue on soft-iface
> Patch failed at 0001 batman-adv: no need to start/stop queue on soft-iface
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> error: net/batman-adv/soft-interface.c: does not exist in index
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
>
>
>
> Might be related to the fact that soft-interface is now called mesh-interface.
Yeah, it was based on old code.
v2 incoming.
Regards,
--
Antonio Quartulli
CEO and Co-Founder
Mandelbit Srl
https://www.mandelbit.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-17 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 10:54 [PATCH] batman-adv: no need to start/stop queue on soft-iface Antonio Quartulli
2025-03-17 11:16 ` Sven Eckelmann
2025-03-17 12:39 ` [PATCH v2] " Antonio Quartulli
2025-03-17 12:41 ` [PATCH] " Antonio Quartulli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.