* [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
@ 2020-03-05 14:04 Nicolas Cavallari
2020-03-05 20:07 ` Thomas Pedersen
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Cavallari @ 2020-03-05 14:04 UTC (permalink / raw)
To: linux-wireless; +Cc: Johannes Berg
From: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
When trying to transmit to an unknown destination, the mesh code would
unconditionally transmit a HWMP PREQ even if HWMP is not the current
path selection algorithm.
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
---
net/mac80211/mesh_hwmp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index d69983370381..38a0383dfbcf 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -1152,7 +1152,8 @@ int mesh_nexthop_resolve(struct ieee80211_sub_if_data *sdata,
}
}
- if (!(mpath->flags & MESH_PATH_RESOLVING))
+ if (!(mpath->flags & MESH_PATH_RESOLVING) &&
+ mesh_path_sel_is_hwmp(sdata))
mesh_queue_preq(mpath, PREQ_Q_F_START);
if (skb_queue_len(&mpath->frame_queue) >= MESH_FRAME_QUEUE_LEN)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
2020-03-05 14:04 [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled Nicolas Cavallari
@ 2020-03-05 20:07 ` Thomas Pedersen
2020-03-06 8:48 ` Nicolas Cavallari
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Pedersen @ 2020-03-05 20:07 UTC (permalink / raw)
To: Nicolas Cavallari, linux-wireless; +Cc: Johannes Berg
On 3/5/20 6:04 AM, Nicolas Cavallari wrote:
> From: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
>
> When trying to transmit to an unknown destination, the mesh code would
> unconditionally transmit a HWMP PREQ even if HWMP is not the current
> path selection algorithm.
>
> Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
> ---
> net/mac80211/mesh_hwmp.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
> index d69983370381..38a0383dfbcf 100644
> --- a/net/mac80211/mesh_hwmp.c
> +++ b/net/mac80211/mesh_hwmp.c
> @@ -1152,7 +1152,8 @@ int mesh_nexthop_resolve(struct ieee80211_sub_if_data *sdata,
> }
> }
>
> - if (!(mpath->flags & MESH_PATH_RESOLVING))
> + if (!(mpath->flags & MESH_PATH_RESOLVING) &&
> + mesh_path_sel_is_hwmp(sdata))
> mesh_queue_preq(mpath, PREQ_Q_F_START);
>
> if (skb_queue_len(&mpath->frame_queue) >= MESH_FRAME_QUEUE_LEN)
>
The skb would still get queued onto the mpath->frame_queue. Is it
this expected? ie. do you have a non-hwmp path selection algorithm which
will handle it, or are you really checking if path selection is
disabled?
--
-- thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
2020-03-05 20:07 ` Thomas Pedersen
@ 2020-03-06 8:48 ` Nicolas Cavallari
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Cavallari @ 2020-03-06 8:48 UTC (permalink / raw)
To: Thomas Pedersen, linux-wireless; +Cc: Johannes Berg
On 05/03/2020 21:07, Thomas Pedersen wrote:
> On 3/5/20 6:04 AM, Nicolas Cavallari wrote:
>> From: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
>>
>> When trying to transmit to an unknown destination, the mesh code would
>> unconditionally transmit a HWMP PREQ even if HWMP is not the current
>> path selection algorithm.
>>
>
> The skb would still get queued onto the mpath->frame_queue. Is it
> this expected? ie. do you have a non-hwmp path selection algorithm which
> will handle it, or are you really checking if path selection is
> disabled?
Well, there is no way to disable path selection, is it ? The only way for
HWMP to be disabled is to use a vendor path selection, right ?
So as soon as userspace adds the path, the skb will be sent.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-06 8:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 14:04 [PATCH] mac80211: Do not send mesh HWMP PREQ if HWMP is disabled Nicolas Cavallari
2020-03-05 20:07 ` Thomas Pedersen
2020-03-06 8:48 ` Nicolas Cavallari
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).