All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Henning Rogge <hrogge@gmail.com>
Cc: linux-wireless@vger.kernel.org, Bob Copeland <me@bobcopeland.com>,
	Yeoh Chun-Yeow <yeohchunyeow@gmail.com>,
	Thomas Pedersen <thomas@noack.us>
Subject: Re: [RFC Patch v2] Unify mpp/mesh_path handling for Mac 802.11s
Date: Wed, 28 May 2014 15:17:20 +0200	[thread overview]
Message-ID: <1401283040.8146.15.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <2083629.VLZzpqGjAs@desktop.local> (sfid-20140528_123454_081662_DB061595)

On Wed, 2014-05-28 at 12:34 +0200, Henning Rogge wrote:
> Hi,
> 
> I looked a little bit more into the 802.11s mesh code to see if there is still
> a chance for unifying some code without forcing the issue as the last patch
> did.
> 
> The result was the attached patch, which still needs one "if (mpp) ... else"
> block but unifies most of the code for mpp_path_add() and mesh_path_add().
> 
> If this is still too much I would suggest leaving the mesh_pathtbl code as it is.
> 
> While looking through the code I noticed that there seems to be no code-path
> that removes stall mpp_path entries (except for the removal of the mesh
> interface) ! Unless I overlooked something this would be a way to use up all
> existing memory of the kernel by sending it 802.11s packets with changing
> proxied addresses.
> 
> I have added an atomic counter to restrict the number of proxied paths
> (similar to the restriction of the mesh paths), but I am not convinced that
> this would be enough. There needs to be some timeout mechanism, but resetting
> the timeout of a MPP every times we receive an unicast from it sounds
> expensive.

Can you not do everything in one patch? :)

Also - I think reporting the MPPs to userspace like the mesh paths is
probably not a good idea? And I think that happens now since you didn't
touch the code in cfg?

johannes

johannes


  parent reply	other threads:[~2014-05-28 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 10:34 [RFC Patch v2] Unify mpp/mesh_path handling for Mac 802.11s Henning Rogge
2014-05-28 10:43 ` Yeoh Chun-Yeow
2014-05-28 10:55   ` Henning Rogge
     [not found]     ` <CAEFj984PE5L2Yv4r6nshAy6Zuama5wsins27xeX9A1B4RGqmgg@mail.gmail.com>
2014-05-28 11:52       ` Henning Rogge
2014-05-28 13:17 ` Johannes Berg [this message]
2014-05-28 13:20   ` Henning Rogge
2014-05-28 13:27     ` Johannes Berg
2014-05-28 19:33       ` Henning Rogge

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=1401283040.8146.15.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=hrogge@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=me@bobcopeland.com \
    --cc=thomas@noack.us \
    --cc=yeohchunyeow@gmail.com \
    /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 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.