netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sch_prio.c vs CONFIG_NETDEVICES_MULTIQUEUE
@ 2007-10-23 12:14 Alexey Dobriyan
  2007-10-23 12:17 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2007-10-23 12:14 UTC (permalink / raw)
  To: netdev; +Cc: peter.p.waskiewicz.jr, kaber

gcc spits following warnings

net/sched/sch_prio.c:139: warning: passing argument 2 of 'netif_subqueue_stopped' makes pointer from integer without a cast
net/sched/sch_prio.c:169: warning: passing argument 2 of 'netif_subqueue_stopped' makes pointer from integer without a cast

and he is dead right -- passing integer instead of skb is not going to
work:

	if (!netif_subqueue_stopped(sch->dev, (q->mq ? prio : 0))) {

skb_get_queue_mapping will ignore it if multiqueue support is off and
dereference it otherwise.


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

end of thread, other threads:[~2007-10-24  3:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23 12:14 sch_prio.c vs CONFIG_NETDEVICES_MULTIQUEUE Alexey Dobriyan
2007-10-23 12:17 ` Patrick McHardy
2007-10-23 13:01   ` Pavel Emelyanov
2007-10-24  3:51     ` David Miller

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