Search Linux Wireless

Re: [RFC v2 3/4] mac80211: use static keys for hw flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 11 Nov 2015 15:29:02 +0100
Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:


config MY_DRIVER_1
	SELECT SET_FLAG

config MY_DRIVER_2
	SELECT SET_FLAG

[...]


config FLAG_ALL_SET
  default y
  depends on MY_DRIVER_1 && !MY_DRIVER_2 && ... && MY_DRIVER_N


> Right. Basically it'd be one of three options:
>  * all compiled drivers want the flag set:
>    use a static key to make the fast case "flag set"

#if defined(CONFIG_SET_FLAG) && defined(CONFIG_FLAG_ALL_SET)

>  * no compiled driver wants the flag set:
>    use a static key to make the fast case "flag unset"

#ifndef CONFIG_SET_FLAG

>  * different drivers are compiled:
>    don't use a static key since we don't know which one will get used

#if defined(CONFIG_FLAG_SET) && !defined(CONFIG_FLAGS_ALL_SET)

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux