From: Johannes Berg <johannes@sipsolutions.net>
To: javier@cozybit.com
Cc: linux-wireless@vger.kernel.org, Andrey Yurovsky <andrey@cozybit.com>
Subject: Re: [PATCH v3] Fix regression in mesh forwarding path.
Date: Tue, 07 Jul 2009 10:50:52 +0200 [thread overview]
Message-ID: <1246956652.4316.3.camel@johannes.local> (raw)
In-Reply-To: <1246935252-19823-1-git-send-email-javier@cozybit.com>
[-- Attachment #1: Type: text/plain, Size: 2410 bytes --]
On Mon, 2009-07-06 at 19:54 -0700, javier@cozybit.com wrote:
> From: Javier Cardona <javier@cozybit.com>
>
> The removal of the master netdev broke the mesh forwarding path. This patch
> fixes it by using the new internal 'pending' queue.
>
> As a result of this change, mesh forwarding no longer does the inefficient
> 802.11 -> 802.3 -> 802.11 conversion that was done before.
>
> Signed-off-by: Javier Cardona <javier@cozybit.com>
> Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
> ---
> net/mac80211/mesh_hwmp.c | 3 ++-
> net/mac80211/mesh_pathtbl.c | 9 ++++-----
> net/mac80211/rx.c | 17 +++++++++++++++--
> net/mac80211/tx.c | 3 ---
> 4 files changed, 21 insertions(+), 11 deletions(-)
>
> diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
> index f49ef28..c31fe79 100644
> --- a/net/mac80211/mesh_hwmp.c
> +++ b/net/mac80211/mesh_hwmp.c
> @@ -784,7 +784,6 @@ int mesh_nexthop_lookup(struct sk_buff *skb,
> mesh_path_add(dst_addr, sdata);
> mpath = mesh_path_lookup(dst_addr, sdata);
> if (!mpath) {
> - dev_kfree_skb(skb);
> sdata->u.mesh.mshstats.dropped_frames_no_route++;
> err = -ENOSPC;
> goto endlookup;
> @@ -804,6 +803,7 @@ int mesh_nexthop_lookup(struct sk_buff *skb,
> memcpy(hdr->addr1, mpath->next_hop->sta.addr,
> ETH_ALEN);
> } else {
> + struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
> if (!(mpath->flags & MESH_PATH_RESOLVING)) {
> /* Start discovery only if it is not running yet */
> mesh_queue_preq(mpath, PREQ_Q_F_START);
> @@ -815,6 +815,7 @@ int mesh_nexthop_lookup(struct sk_buff *skb,
> skb_unlink(skb_to_free, &mpath->frame_queue);
> }
>
> + info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING;
> skb_queue_tail(&mpath->frame_queue, skb);
> if (skb_to_free)
> mesh_path_discard_frame(skb_to_free, sdata);
> diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
> index 3c72557..1e32948 100644
> --- a/net/mac80211/mesh_pathtbl.c
> +++ b/net/mac80211/mesh_pathtbl.c
> @@ -14,6 +14,7 @@
> #include <linux/string.h>
> #include <net/mac80211.h>
> #include "ieee80211_i.h"
> +#include "wme.h"
> #include "mesh.h"
You _could_ drop that extra include now, but it's not like it really
matters.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2009-07-07 8:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 0:47 [PATCH] Fix regression in mesh forwarding path javier
2009-07-07 0:52 ` javier
2009-07-07 1:06 ` Johannes Berg
2009-07-07 1:25 ` [PATCH v2] " javier
2009-07-07 1:40 ` Johannes Berg
2009-07-07 3:03 ` Javier Cardona
2009-07-07 2:54 ` [PATCH v3] " javier
2009-07-07 8:50 ` Johannes Berg [this message]
2009-07-07 15:30 ` [PATCH v4] " Javier Cardona
2009-07-07 17:03 ` [PATCH v3] " John W. Linville
2009-07-07 17:55 ` [PATCH v5] " javier
2009-07-10 18:51 ` [PATCH v5] mac80211: " John W. Linville
2009-07-10 19:04 ` Andrey Yurovsky
2009-07-07 1:35 ` [PATCH] " Javier Cardona
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1246956652.4316.3.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=andrey@cozybit.com \
--cc=javier@cozybit.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).