linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* skb->priority magic values as part of UAPI headers?
@ 2014-03-13  5:04 Florian Fainelli
  2014-03-14  9:26 ` Helmut Schaa
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2014-03-13  5:04 UTC (permalink / raw)
  To: open list:ATHEROS ATH5K WIR..., Johannes Berg

Hi,

While browsing through net/wireless/util.c::cfg80211_classify8021d() I
stumbled upon the "magic values" range 256 to 263, should not those be
made part of some sort of user-space API header file, just so if
things need to be changed, they suddenly do not break?

Thanks
-- 
Florian

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

* Re: skb->priority magic values as part of UAPI headers?
  2014-03-13  5:04 skb->priority magic values as part of UAPI headers? Florian Fainelli
@ 2014-03-14  9:26 ` Helmut Schaa
  2014-03-14 15:56   ` Ben Greear
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Schaa @ 2014-03-14  9:26 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: open list:ATHEROS ATH5K WIR..., Johannes Berg

On Thu, Mar 13, 2014 at 6:04 AM, Florian Fainelli <f.fainelli@gmail.com> wrote:
> While browsing through net/wireless/util.c::cfg80211_classify8021d() I
> stumbled upon the "magic values" range 256 to 263, should not those be
> made part of some sort of user-space API header file, just so if
> things need to be changed, they suddenly do not break?

I stumbled over that some time ago as well [1].
The question is if this is required at all anymore or if it could just
be removed.
Helmut

[1] http://comments.gmane.org/gmane.linux.kernel.wireless.general/82689

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

* Re: skb->priority magic values as part of UAPI headers?
  2014-03-14  9:26 ` Helmut Schaa
@ 2014-03-14 15:56   ` Ben Greear
  2014-03-14 19:28     ` Florian Fainelli
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2014-03-14 15:56 UTC (permalink / raw)
  To: Helmut Schaa
  Cc: Florian Fainelli, open list:ATHEROS ATH5K WIR..., Johannes Berg

On 03/14/2014 02:26 AM, Helmut Schaa wrote:
> On Thu, Mar 13, 2014 at 6:04 AM, Florian Fainelli <f.fainelli@gmail.com> wrote:
>> While browsing through net/wireless/util.c::cfg80211_classify8021d() I
>> stumbled upon the "magic values" range 256 to 263, should not those be
>> made part of some sort of user-space API header file, just so if
>> things need to be changed, they suddenly do not break?
> 
> I stumbled over that some time ago as well [1].
> The question is if this is required at all anymore or if it could just
> be removed.
> Helmut

I use it to easily poke user-space generated packets into specific
transmit queues on the NIC.  Please do not remove it.

Thanks,
Ben

> 
> [1] http://comments.gmane.org/gmane.linux.kernel.wireless.general/82689
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


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

* Re: skb->priority magic values as part of UAPI headers?
  2014-03-14 15:56   ` Ben Greear
@ 2014-03-14 19:28     ` Florian Fainelli
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2014-03-14 19:28 UTC (permalink / raw)
  To: Ben Greear; +Cc: Helmut Schaa, open list:ATHEROS ATH5K WIR..., Johannes Berg

2014-03-14 8:56 GMT-07:00 Ben Greear <greearb@candelatech.com>:
> On 03/14/2014 02:26 AM, Helmut Schaa wrote:
>> On Thu, Mar 13, 2014 at 6:04 AM, Florian Fainelli <f.fainelli@gmail.com> wrote:
>>> While browsing through net/wireless/util.c::cfg80211_classify8021d() I
>>> stumbled upon the "magic values" range 256 to 263, should not those be
>>> made part of some sort of user-space API header file, just so if
>>> things need to be changed, they suddenly do not break?
>>
>> I stumbled over that some time ago as well [1].
>> The question is if this is required at all anymore or if it could just
>> be removed.
>> Helmut
>
> I use it to easily poke user-space generated packets into specific
> transmit queues on the NIC.  Please do not remove it.

The initial question was whether that should be clearly stated as part
of ABI contract between the kernel and user-space, do you think this
belongs in some header in include/uapi?

Thanks!
-- 
Florian

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

end of thread, other threads:[~2014-03-14 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13  5:04 skb->priority magic values as part of UAPI headers? Florian Fainelli
2014-03-14  9:26 ` Helmut Schaa
2014-03-14 15:56   ` Ben Greear
2014-03-14 19:28     ` Florian Fainelli

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).