All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: backport IFF_NO_QUEUE net_device flag
@ 2015-08-25 19:36 Emmanuel Grumbach
  2015-08-25 22:05 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Grumbach @ 2015-08-25 19:36 UTC (permalink / raw)
  To: backports; +Cc: Emmanuel Grumbach

commit fa8187c96471c49419c25d4ec3299d17d3f274b2
Author: Phil Sutter <phil@nwl.cc>
Date:   Thu Aug 13 19:01:06 2015 +0200

    net: declare new net_device priv_flag IFF_NO_QUEUE

    This private net_device flag can be set by drivers to inform that a
    device runs fine without a qdisc attached. This was formerly done by
    setting tx_queue_len to zero.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 backport/backport-include/linux/netdevice.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 95189be..94d8613 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -292,4 +292,9 @@ netdev_features_t passthru_features_check(struct sk_buff *skb,
 })
 #endif /* netdev_alloc_pcpu_stats */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
+#ifndef IFF_NO_QUEUE
+#define IFF_NO_QUEUE 1<<26
+#endif
+
 #endif /* __BACKPORT_NETDEVICE_H */
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

* Re: [PATCH] backports: backport IFF_NO_QUEUE net_device flag
  2015-08-25 19:36 [PATCH] backports: backport IFF_NO_QUEUE net_device flag Emmanuel Grumbach
@ 2015-08-25 22:05 ` Johannes Berg
  2015-08-26  2:42   ` Grumbach, Emmanuel
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2015-08-25 22:05 UTC (permalink / raw)
  To: Emmanuel Grumbach, backports

On Tue, 2015-08-25 at 22:36 +0300, Emmanuel Grumbach wrote:
> commit fa8187c96471c49419c25d4ec3299d17d3f274b2
> Author: Phil Sutter <phil@nwl.cc>
> Date:   Thu Aug 13 19:01:06 2015 +0200
> 
>     net: declare new net_device priv_flag IFF_NO_QUEUE
> 
>     This private net_device flag can be set by drivers to inform that a
>     device runs fine without a qdisc attached. This was formerly done by
>     setting tx_queue_len to zero.
> 
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
> ---
>  backport/backport-include/linux/netdevice.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/backport/backport-include/linux/netdevice.h 
> b/backport/backport-include/linux/netdevice.h
> index 95189be..94d8613 100644
> --- a/backport/backport-include/linux/netdevice.h
> +++ b/backport/backport-include/linux/netdevice.h
> @@ -292,4 +292,9 @@ netdev_features_t passthru_features_check(struct 
> sk_buff *skb,
>  })
>  #endif /* netdev_alloc_pcpu_stats */
>  
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
> +#ifndef IFF_NO_QUEUE
> +#define IFF_NO_QUEUE 1<<26
> +#endif
> 
That doesn't really help, does it? Need to add a semantic patch to
backport this with an ifdef to set the tx_queue_len to 0 in the older
kernel case?

johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

* Re: [PATCH] backports: backport IFF_NO_QUEUE net_device flag
  2015-08-25 22:05 ` Johannes Berg
@ 2015-08-26  2:42   ` Grumbach, Emmanuel
  0 siblings, 0 replies; 3+ messages in thread
From: Grumbach, Emmanuel @ 2015-08-26  2:42 UTC (permalink / raw)
  To: Johannes Berg, backports@vger.kernel.org



On 08/26/2015 01:05 AM, Johannes Berg wrote:
> On Tue, 2015-08-25 at 22:36 +0300, Emmanuel Grumbach wrote:
>> commit fa8187c96471c49419c25d4ec3299d17d3f274b2
>> Author: Phil Sutter <phil@nwl.cc>
>> Date:   Thu Aug 13 19:01:06 2015 +0200
>>
>>     net: declare new net_device priv_flag IFF_NO_QUEUE
>>
>>     This private net_device flag can be set by drivers to inform that a
>>     device runs fine without a qdisc attached. This was formerly done by
>>     setting tx_queue_len to zero.
>>
>> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>> ---
>>  backport/backport-include/linux/netdevice.h | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/backport/backport-include/linux/netdevice.h 
>> b/backport/backport-include/linux/netdevice.h
>> index 95189be..94d8613 100644
>> --- a/backport/backport-include/linux/netdevice.h
>> +++ b/backport/backport-include/linux/netdevice.h
>> @@ -292,4 +292,9 @@ netdev_features_t passthru_features_check(struct 
>> sk_buff *skb,
>>  })
>>  #endif /* netdev_alloc_pcpu_stats */
>>  
>> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
>> +#ifndef IFF_NO_QUEUE
>> +#define IFF_NO_QUEUE 1<<26
>> +#endif
>>
> That doesn't really help, does it? Need to add a semantic patch to
> backport this with an ifdef to set the tx_queue_len to 0 in the older
> kernel case?
> 
You are most probably right. I had to admit I just checked that it
compiles and probably didn't take enough time to see what it really
does... :(
--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

end of thread, other threads:[~2015-08-26  2:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 19:36 [PATCH] backports: backport IFF_NO_QUEUE net_device flag Emmanuel Grumbach
2015-08-25 22:05 ` Johannes Berg
2015-08-26  2:42   ` Grumbach, Emmanuel

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.