mac80211: Only process mesh PREPs with equal seq number if metric is better.
PATCH 1/1 mac80211: Only process mesh PREPs with equal seq number if metric is better.
From: Fabrice Deyber <[email protected]>
This fixes routing loops in PREP propagation and is in accordance with Draft 11, Section: 11C.9.8.4.
--- net/mac80211/mesh_hwmp.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
net/mac80211/mesh_hwmp.c +0 -1
@@ -391,7 +391,6 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, (mpath->flags & MESH_PATH_SN_VALID)) {if (SN_GT (mpath->sn, orig_sn) || (mpath->sn == orig_sn && - action ==MPATH_PREQ && new_metric >= mpath->metric)) { process = false; fresh_info = false;
Signature · 1 line
1.7.1
Johannes Berg
maintainernet/mac80211/mesh_hwmp.c static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, · line 394
Quoted 11 lines · Javier Cardona
From: Fabrice Deyber <[email protected]>
This fixes routing loops in PREP propagation and is in accordance with Draft 11, Section: 11C.9.8.4.
+++
b/net/mac80211/mesh_hwmp.cnet/mac80211/mesh_hwmp.c +0
-1@@ -391,7 +391,6 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, (mpath->flags & MESH_PATH_SN_VALID)) { if (SN_GT(mpath->sn, orig_sn) || (mpath->sn == orig_sn && - action == MPATH_PREQ &&
I don't understand how removing the action comparison maps to the patch description -- can you explain a bit more?
johannes
Quoted 6 lines · Johannes Berg
Quoted 4 lines · Javier Cardona
From: Fabrice Deyber <[email protected]>
This fixes routing loops in PREP propagation and is in accordance with Draft 11, Section: 11C.9.8.4.
Quoted 9 lines
Quoted 6 lines
+++
b/net/mac80211/mesh_hwmp.cnet/mac80211/mesh_hwmp.c +0
-0@@ -391,7 +391,6 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, (mpath->flags & MESH_PATH_SN_VALID)) {if (
SN_GT(mpath->sn, orig_sn)|| (mpath->sn==orig_sn&&
- action ==MPATH_PREQ&&I don't understand how removing the action comparison maps to the patch description -- can you explain a bit more?
If the if condition is true, this PREQ or PREP will be ignored. The first part of the condition eliminates old sequence numbers, where the metric is not checked. The second part of the if condidion (|| (mpath->sn == ...) used to eliminate all the PREQs with equal seq number and worse metric. The patch modifies it to also eliminate PREPs.
j
Signature · 3 lines
Javier Cardona cozybit Inc. http://www.cozybit.com
Johannes Berg
maintainerQuoted 13 lines · Javier Cardona
Quoted 12 lines
net/mac80211/mesh_hwmp.c static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, · line 394
Quoted 9 lines
This fixes routing loops in PREP propagation and is in accordance with Draft 11, Section: 11C.9.8.4.
+++
b/net/mac80211/mesh_hwmp.cnet/mac80211/mesh_hwmp.c +0
-1@@ -391,7 +391,6 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata, (mpath->flags & MESH_PATH_SN_VALID)) { if (SN_GT(mpath->sn, orig_sn) || (mpath->sn == orig_sn && - action == MPATH_PREQ &&I don't understand how removing the action comparison maps to the patch description -- can you explain a bit more?
Quoted 6 lines
If the if condition is true, this PREQ or PREP will be ignored. The first part of the condition eliminates old sequence numbers, where the metric is not checked. The second part of the if condidion (|| (
mpath->sn== ...) used to eliminate all the PREQs with equal seq number and worse metric. The patch modifies it to also eliminate PREPs.
Ah. Thanks for the explanation, guess I shouldn't be trying to read this after midnight :-)
johannes