All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: davem@davemloft.net
Cc: netdev@oss.sgi.com
Subject: [PATCH 7/7] [PKT_SCHED]: noop/noqueue qdisc style cleanups
Date: Tue, 07 Jun 2005 16:08:49 +0200	[thread overview]
Message-ID: <20050607140901.632982000@axs> (raw)
In-Reply-To: 20050607140842.778143000@axs

[-- Attachment #1: sch_generic_cleanups --]
[-- Type: text/plain, Size: 1353 bytes --]

Signed-off-by: Thomas Graf <tgraf@suug.ch>

Index: net-2.6.13/net/sched/sch_generic.c
===================================================================
--- net-2.6.13.orig/net/sched/sch_generic.c
+++ net-2.6.13/net/sched/sch_generic.c
@@ -243,31 +243,27 @@ static void dev_watchdog_down(struct net
    cheaper.
  */
 
-static int
-noop_enqueue(struct sk_buff *skb, struct Qdisc * qdisc)
+static int noop_enqueue(struct sk_buff *skb, struct Qdisc * qdisc)
 {
 	kfree_skb(skb);
 	return NET_XMIT_CN;
 }
 
-static struct sk_buff *
-noop_dequeue(struct Qdisc * qdisc)
+static struct sk_buff *noop_dequeue(struct Qdisc * qdisc)
 {
 	return NULL;
 }
 
-static int
-noop_requeue(struct sk_buff *skb, struct Qdisc* qdisc)
+static int noop_requeue(struct sk_buff *skb, struct Qdisc* qdisc)
 {
 	if (net_ratelimit())
-		printk(KERN_DEBUG "%s deferred output. It is buggy.\n", skb->dev->name);
+		printk(KERN_DEBUG "%s deferred output. It is buggy.\n",
+		       skb->dev->name);
 	kfree_skb(skb);
 	return NET_XMIT_CN;
 }
 
 struct Qdisc_ops noop_qdisc_ops = {
-	.next		=	NULL,
-	.cl_ops		=	NULL,
 	.id		=	"noop",
 	.priv_size	=	0,
 	.enqueue	=	noop_enqueue,
@@ -285,8 +281,6 @@ struct Qdisc noop_qdisc = {
 };
 
 static struct Qdisc_ops noqueue_qdisc_ops = {
-	.next		=	NULL,
-	.cl_ops		=	NULL,
 	.id		=	"noqueue",
 	.priv_size	=	0,
 	.enqueue	=	noop_enqueue,

  parent reply	other threads:[~2005-06-07 14:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050607140842.778143000@axs>
2005-06-07 14:08 ` [PATCH 6/7] [PKT_SCHED]: Cleanup pfifo_fast qdisc and remove unnecessary code Thomas Graf
2005-06-07 14:08 ` Thomas Graf [this message]
2005-06-07 21:36   ` netdev munching messages again? Thomas Graf
2005-06-07 21:42     ` David S. Miller
2005-06-08 13:29       ` Thomas Graf
2005-06-08 13:44         ` jamal
2005-06-08 16:04           ` Ralf Baechle
2005-06-08 16:13             ` Thomas Graf
2005-06-08 17:28               ` Ralf Baechle
2005-06-08 20:00                 ` Thomas Graf
2005-06-08 20:10                   ` David S. Miller
2005-06-08 20:30                     ` randy_dunlap
     [not found]                       ` <42A77446.3030102@us.ibm.com>
2005-06-08 22:46                         ` netdev moved to vger; please subscribe David S. Miller
2005-06-09 13:27                     ` [PATCH] Re: netdev munching messages again? Ralf Baechle
2005-06-09 16:18                       ` Ralf Baechle
     [not found]                   ` <20050609122325.GE4927@linux-mips.org>
2005-06-09 12:43                     ` jamal

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=20050607140901.632982000@axs \
    --to=tgraf@suug.ch \
    --cc=davem@davemloft.net \
    --cc=netdev@oss.sgi.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.