All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
@ 2013-02-16 19:22 Thomas Pedersen
  2013-02-17 13:58 ` Yeoh Chun-Yeow
  2013-02-18 14:19 ` Johannes Berg
  0 siblings, 2 replies; 9+ messages in thread
From: Thomas Pedersen @ 2013-02-16 19:22 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, devel, Thomas Pedersen

Increases mac80211 memory use by about 95K.

At least Ubuntu, Debian, and Arch Linux already enable
this in their default kernels.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
---
 net/mac80211/Kconfig |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 0ecf947..4ca2a49 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -80,14 +80,15 @@ comment "Some wireless drivers require a rate control algorithm"
 	depends on MAC80211 && MAC80211_HAS_RC=n
 
 config MAC80211_MESH
-	bool "Enable mac80211 mesh networking (pre-802.11s) support"
-	depends on MAC80211 && EXPERIMENTAL
+	bool "Enable mac80211 mesh networking (802.11s) support"
+	depends on MAC80211
+	default y
 	---help---
-	 This options enables support of Draft 802.11s mesh networking.
-	 The implementation is based on Draft 2.08 of the Mesh Networking
-	 amendment.  However, no compliance with that draft is claimed or even
-	 possible, as drafts leave a number of identifiers to be defined after
-	 ratification.  For more information visit http://o11s.org/.
+	 This options enables support for 802.11s mesh networking.  The
+	 implementation is based on the 11s amendment introduced in IEEE
+	 802.11-2012. An effort has been made to be standard-compliant, so If
+	 you notice something amiss, please contact the maintainers.  For more
+	 information visit http://o11s.org/.
 
 config MAC80211_LEDS
 	bool "Enable LED triggers"
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-16 19:22 [RFC] mac80211: make CONFIG_MAC80211_MESH=y default Thomas Pedersen
@ 2013-02-17 13:58 ` Yeoh Chun-Yeow
  2013-02-18 14:17   ` Johannes Berg
  2013-02-18 14:19 ` Johannes Berg
  1 sibling, 1 reply; 9+ messages in thread
From: Yeoh Chun-Yeow @ 2013-02-17 13:58 UTC (permalink / raw)
  To: devel; +Cc: johannes, linux-wireless

http://o11s.org seems not active.

---
Chun-Yeow

On Sun, Feb 17, 2013 at 3:22 AM, Thomas Pedersen <thomas@cozybit.com> wrote:
> Increases mac80211 memory use by about 95K.
>
> At least Ubuntu, Debian, and Arch Linux already enable
> this in their default kernels.
>
> Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
> ---
>  net/mac80211/Kconfig |   15 ++++++++-------
>  1 file changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
> index 0ecf947..4ca2a49 100644
> --- a/net/mac80211/Kconfig
> +++ b/net/mac80211/Kconfig
> @@ -80,14 +80,15 @@ comment "Some wireless drivers require a rate control algorithm"
>         depends on MAC80211 && MAC80211_HAS_RC=n
>
>  config MAC80211_MESH
> -       bool "Enable mac80211 mesh networking (pre-802.11s) support"
> -       depends on MAC80211 && EXPERIMENTAL
> +       bool "Enable mac80211 mesh networking (802.11s) support"
> +       depends on MAC80211
> +       default y
>         ---help---
> -        This options enables support of Draft 802.11s mesh networking.
> -        The implementation is based on Draft 2.08 of the Mesh Networking
> -        amendment.  However, no compliance with that draft is claimed or even
> -        possible, as drafts leave a number of identifiers to be defined after
> -        ratification.  For more information visit http://o11s.org/.
> +        This options enables support for 802.11s mesh networking.  The
> +        implementation is based on the 11s amendment introduced in IEEE
> +        802.11-2012. An effort has been made to be standard-compliant, so If
> +        you notice something amiss, please contact the maintainers.  For more
> +        information visit http://o11s.org/.
>
>  config MAC80211_LEDS
>         bool "Enable LED triggers"
> --
> 1.7.10.4
>
> _______________________________________________
> Devel mailing list
> Devel@lists.open80211s.org
> http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-17 13:58 ` Yeoh Chun-Yeow
@ 2013-02-18 14:17   ` Johannes Berg
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2013-02-18 14:17 UTC (permalink / raw)
  To: Yeoh Chun-Yeow; +Cc: devel, linux-wireless

On Sun, 2013-02-17 at 21:58 +0800, Yeoh Chun-Yeow wrote:
> http://o11s.org seems not active.

I guess it should be open80211s.org

johannes


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-16 19:22 [RFC] mac80211: make CONFIG_MAC80211_MESH=y default Thomas Pedersen
  2013-02-17 13:58 ` Yeoh Chun-Yeow
@ 2013-02-18 14:19 ` Johannes Berg
  2013-02-19 18:01   ` Thomas Pedersen
  2013-02-20  1:00   ` Julian Calaby
  1 sibling, 2 replies; 9+ messages in thread
From: Johannes Berg @ 2013-02-18 14:19 UTC (permalink / raw)
  To: Thomas Pedersen; +Cc: linux-wireless, devel

On Sat, 2013-02-16 at 11:22 -0800, Thomas Pedersen wrote:
> Increases mac80211 memory use by about 95K.
> 
> At least Ubuntu, Debian, and Arch Linux already enable
> this in their default kernels.

*shrug*

I guess I don't really see a problem with this, although only a small
subset of drivers really supports it. Anyone really wanting to build for
a small system will probably turn it off anyway.

OTOH, if distros enable it, I also don't see much point in changing
it ;-)

What might be interesting is for drivers to somehow indicate they
support it? But you wouldn't necessarily want drivers to "select MESH",
so it'd probably have to be something like not allowing mesh to be
turned on if no driver is turned on that has it? But that makes it
complicated again, so it's all probably not worth it.

johannes


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-18 14:19 ` Johannes Berg
@ 2013-02-19 18:01   ` Thomas Pedersen
  2013-02-20  1:00   ` Julian Calaby
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Pedersen @ 2013-02-19 18:01 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, devel

On Mon, Feb 18, 2013 at 6:19 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Sat, 2013-02-16 at 11:22 -0800, Thomas Pedersen wrote:
>> Increases mac80211 memory use by about 95K.
>>
>> At least Ubuntu, Debian, and Arch Linux already enable
>> this in their default kernels.
>
> *shrug*
>
> I guess I don't really see a problem with this, although only a small
> subset of drivers really supports it. Anyone really wanting to build for
> a small system will probably turn it off anyway.
>
> OTOH, if distros enable it, I also don't see much point in changing
> it ;-)

Heh, good point. I guess this is an attempt to elevate mesh from the
status of "2nd-class citizen" into the realm of "good enough to
default =y" :)

If it's all the same to you I'll go ahead and submit this as a PATCH then.

-- 
Thomas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-18 14:19 ` Johannes Berg
  2013-02-19 18:01   ` Thomas Pedersen
@ 2013-02-20  1:00   ` Julian Calaby
  2013-02-20  8:25     ` Johannes Berg
  1 sibling, 1 reply; 9+ messages in thread
From: Julian Calaby @ 2013-02-20  1:00 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Thomas Pedersen, linux-wireless, devel

Hi Johannes,

On Tue, Feb 19, 2013 at 1:19 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Sat, 2013-02-16 at 11:22 -0800, Thomas Pedersen wrote:
>> Increases mac80211 memory use by about 95K.
>>
>> At least Ubuntu, Debian, and Arch Linux already enable
>> this in their default kernels.
>
> *shrug*
>
> I guess I don't really see a problem with this, although only a small
> subset of drivers really supports it. Anyone really wanting to build for
> a small system will probably turn it off anyway.
>
> OTOH, if distros enable it, I also don't see much point in changing
> it ;-)
>
> What might be interesting is for drivers to somehow indicate they
> support it? But you wouldn't necessarily want drivers to "select MESH",
> so it'd probably have to be something like not allowing mesh to be
> turned on if no driver is turned on that has it? But that makes it
> complicated again, so it's all probably not worth it.

IIRC, the standard way to do things like that is something like:

config HAVE_MESH_DRIVER
    default n

config RANDOM_DRIVER
    select HAVE_MESH_DRIVER

config MESH
    default y if HAVE_MESH_DRIVER

That way it's default on if drivers are selected which have mesh
support but still user selectable (either to disable or if out-of-tree
drivers want it).

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-20  1:00   ` Julian Calaby
@ 2013-02-20  8:25     ` Johannes Berg
  2013-02-20 18:21       ` Thomas Pedersen
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Berg @ 2013-02-20  8:25 UTC (permalink / raw)
  To: Julian Calaby; +Cc: Thomas Pedersen, linux-wireless, devel

Hi Julian,

> > What might be interesting is for drivers to somehow indicate they
> > support it? But you wouldn't necessarily want drivers to "select MESH",
> > so it'd probably have to be something like not allowing mesh to be
> > turned on if no driver is turned on that has it? But that makes it
> > complicated again, so it's all probably not worth it.
> 
> IIRC, the standard way to do things like that is something like:
> 
> config HAVE_MESH_DRIVER
>     default n
> 
> config RANDOM_DRIVER
>     select HAVE_MESH_DRIVER
> 
> config MESH
>     default y if HAVE_MESH_DRIVER
> 
> That way it's default on if drivers are selected which have mesh
> support but still user selectable (either to disable or if out-of-tree
> drivers want it).

Ah, yes, I was thinking something like that but forgot about the
"default ... if" syntax and gave up trying to reproduce it with "select"
and "depends on" :-)

That seems like the best of both worlds? Thomas?

johannes


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-20  8:25     ` Johannes Berg
@ 2013-02-20 18:21       ` Thomas Pedersen
  2013-02-20 20:01         ` Johannes Berg
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Pedersen @ 2013-02-20 18:21 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Julian Calaby, linux-wireless, devel

On Wed, Feb 20, 2013 at 12:25 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> Hi Julian,
>
>> > What might be interesting is for drivers to somehow indicate they
>> > support it? But you wouldn't necessarily want drivers to "select MESH",
>> > so it'd probably have to be something like not allowing mesh to be
>> > turned on if no driver is turned on that has it? But that makes it
>> > complicated again, so it's all probably not worth it.
>>
>> IIRC, the standard way to do things like that is something like:
>>
>> config HAVE_MESH_DRIVER
>>     default n
>>
>> config RANDOM_DRIVER
>>     select HAVE_MESH_DRIVER
>>
>> config MESH
>>     default y if HAVE_MESH_DRIVER
>>
>> That way it's default on if drivers are selected which have mesh
>> support but still user selectable (either to disable or if out-of-tree
>> drivers want it).
>
> Ah, yes, I was thinking something like that but forgot about the
> "default ... if" syntax and gave up trying to reproduce it with "select"
> and "depends on" :-)
>
> That seems like the best of both worlds? Thomas?

Yes it's nice we can leave out mesh when not useful, will put this in
the PATCH. Do you think it will be alright if I go ahead and add the
'select' to all supported drivers in the same patch?

-- 
Thomas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC] mac80211: make CONFIG_MAC80211_MESH=y default
  2013-02-20 18:21       ` Thomas Pedersen
@ 2013-02-20 20:01         ` Johannes Berg
  0 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2013-02-20 20:01 UTC (permalink / raw)
  To: Thomas Pedersen; +Cc: Julian Calaby, linux-wireless, devel

On Wed, 2013-02-20 at 10:21 -0800, Thomas Pedersen wrote:

> Yes it's nice we can leave out mesh when not useful, will put this in
> the PATCH. Do you think it will be alright if I go ahead and add the
> 'select' to all supported drivers in the same patch?

Fine with me, I doubt you'd have the driver maintainers complain :)

johannes


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-20 20:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-16 19:22 [RFC] mac80211: make CONFIG_MAC80211_MESH=y default Thomas Pedersen
2013-02-17 13:58 ` Yeoh Chun-Yeow
2013-02-18 14:17   ` Johannes Berg
2013-02-18 14:19 ` Johannes Berg
2013-02-19 18:01   ` Thomas Pedersen
2013-02-20  1:00   ` Julian Calaby
2013-02-20  8:25     ` Johannes Berg
2013-02-20 18:21       ` Thomas Pedersen
2013-02-20 20:01         ` Johannes Berg

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.