public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* VLAN and Network Drivers 2.4.x
@ 2002-04-24 15:09 jd
  2002-04-24 13:04 ` David S. Miller
  2002-04-24 16:18 ` Ben Greear
  0 siblings, 2 replies; 55+ messages in thread
From: jd @ 2002-04-24 15:09 UTC (permalink / raw)
  To: linux-kernel

Hi,

why is a there a experimental VLAN option in the stable 2.4.x-kernel, when it's useless without patching Network Drivers?

Why isn't there a solution for all network drivers to accept frames 4 bytes longer on request of e.g. vconfig (like ifconfig setting promiscious mode on/off) ? Or to deny vconfig to add a vlan, if the network driver/hardware doesn't support this?

Today the situation is as follows: The experimental VLAN-option is useless, if i dont patch my network drivers, otherwise there is no working VLAN function.

Any future plans?


^ permalink raw reply	[flat|nested] 55+ messages in thread
* RE: what replaces tq_scheduler in 2.4
@ 2002-05-01  2:27 Andrew_Purtell
  0 siblings, 0 replies; 55+ messages in thread
From: Andrew_Purtell @ 2002-05-01  2:27 UTC (permalink / raw)
  To: wyuan1; +Cc: linux-kernel

> Wanghong Yuan wrote:
> It seems that tq_scheduler disappears in Linux 2.4. SO what can
> I do if I need to do something when the scheduler wakes up. 

I also needed the tq_scheduler "feature". I've used the following 
patch with success on 2.4.18 (UP) + preempt. However, since this is
strictly a local hack I felt free to change the semantics somewhat.
If this patch is applied to 2.4.18, the tq_scheduler hook returns
 -- but the runqueue is serviced *after* the context switch, just
before execution in user space is resumed. The old 2.2.x 
tq_scheduler ran just *before* the context switch. 

YMMV.

>>>>>
--- linux-2.4.18/include/linux/tqueue.h.old	Tue Apr 30 19:03:59 2002
+++ linux-2.4.18/include/linux/tqueue.h	Tue Apr 30 19:04:12 2002
@@ -66,7 +66,7 @@
 #define DECLARE_TASK_QUEUE(q)	LIST_HEAD(q)
 #define TQ_ACTIVE(q)		(!list_empty(&q))
 
-extern task_queue tq_timer, tq_immediate, tq_disk;
+extern task_queue tq_timer, tq_immediate, tq_scheduler, tq_disk;
 
 /*
  * To implement your own list of active bottom halfs, use the following
--- linux-2.4.18/kernel/sched.c.old	Tue Apr 30 19:06:30 2002
+++ linux-2.4.18/kernel/sched.c	Tue Apr 30 19:06:00 2002
@@ -106,6 +106,8 @@
 	char __pad [SMP_CACHE_BYTES];
 } aligned_data [NR_CPUS] __cacheline_aligned = { {{&init_task,0}}};
 
+DECLARE_TASK_QUEUE(tq_scheduler);
+
 #define cpu_curr(cpu) aligned_data[(cpu)].schedule_data.curr
 #define last_schedule(cpu) aligned_data[(cpu)].schedule_data.last_schedule
 
@@ -496,6 +498,7 @@
 
 out_unlock:
 	task_unlock(prev);	/* Synchronise here with release_task() if
prev is TASK_ZOMBIE */
+	run_task_queue(&tq_scheduler);
 	return;
 
 	/*
@@ -528,6 +531,7 @@
 	}
 #else
 	prev->policy &= ~SCHED_YIELD;
+	run_task_queue(&tq_scheduler);
 #endif /* CONFIG_SMP */
 }
 
--- linux-2.4.18/kernel/ksyms.c.old	Tue Apr 30 19:06:40 2002
+++ linux-2.4.18/kernel/ksyms.c	Tue Apr 30 19:04:46 2002
@@ -442,6 +442,7 @@
 EXPORT_SYMBOL(xtime);
 EXPORT_SYMBOL(do_gettimeofday);
 EXPORT_SYMBOL(do_settimeofday);
+EXPORT_SYMBOL(tq_scheduler);
 
 #if !defined(__ia64__)
 EXPORT_SYMBOL(loops_per_jiffy);
<<<<<


Andrew Purtell                               andrew_purtell@nai.com
NAI Labs at Network Associates, Inc.                    Seattle, WA

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

end of thread, other threads:[~2002-05-10 23:50 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-24 15:09 VLAN and Network Drivers 2.4.x jd
2002-04-24 13:04 ` David S. Miller
2002-04-24 16:23   ` AW: " jd
2002-04-24 16:35     ` David S. Miller
2002-04-24 17:03       ` AW: " jd
2002-04-24 16:59         ` David S. Miller
2002-04-24 17:31           ` Ben Greear
2002-04-24 17:25             ` David S. Miller
2002-04-24 17:58               ` Ben Greear
2002-04-24 17:56                 ` David S. Miller
2002-04-24 19:43                   ` Ben Greear
2002-04-24 22:23                 ` AW: " jd
2002-04-24 17:49             ` Jeff Garzik
2002-04-24 18:04               ` Ben Greear
2002-04-24 18:10                 ` Jeff Garzik
2002-04-24 18:07               ` Matti Aarnio
2002-04-24 18:13                 ` Jeff Garzik
2002-04-24 17:42           ` AW: " jd
2002-04-24 17:40             ` David S. Miller
2002-04-24 22:28               ` AW: " jd
2002-04-24 22:21                 ` David S. Miller
2002-04-25  4:26                   ` AW: Re: AW: Re: AW: Re: AW: Re: AW: Re: AW: Re: AW: [was: VLAN and Network Drivers 2.4.x] Dax Kelson
     [not found]                     ` <200204242141.02957.bodnar42@phalynx.dhs.org>
2002-04-25  4:43                       ` Ryan Cumming
2002-04-25 10:19                     ` Matthias Andree
2002-04-25 13:45                   ` AW: Re: AW: Re: AW: Re: AW: Re: AW: Re: VLAN and Network Drivers 2.4.x jd
2002-04-26  0:46                     ` David S. Miller
2002-04-27 20:34                       ` jd
2002-04-28  2:43                         ` David S. Miller
2002-04-28 20:28                           ` jd
2002-04-29  3:49                             ` David S. Miller
2002-04-29  5:20                               ` How to enable printk Wanghong Yuan
2002-04-28  6:33                                 ` Uilton Dutra
2002-04-29  6:33                                 ` Itai Nahshon
2002-04-29  6:52                                 ` Chris Wright
2002-04-29 11:37                                 ` David Woodhouse
2002-04-30 17:12                                   ` Denis Vlasenko
2002-04-30 12:55                                     ` David Woodhouse
2002-04-30 18:03                                       ` Denis Vlasenko
2002-04-30 13:14                                         ` David Woodhouse
2002-04-29 22:15                                 ` Accurately measure CPU cycles used by a program? thanks Wanghong Yuan
2002-04-29 22:22                                   ` J.A. Magallon
2002-04-30 16:30                                     ` Zach Brown
2002-05-10 23:49                                     ` Corey Minyard
2002-04-30 22:15                                   ` what replaces tq_scheduler in 2.4 Wanghong Yuan
2002-04-30 22:31                                     ` Andrew Morton
2002-05-02 15:44                                       ` Ingo Oeser
2002-05-03  0:13                                         ` Wanghong Yuan
2002-05-03 18:04                                         ` Andrew Morton
2002-05-01  6:41                                     ` suspend a thread in LKM Wanghong Yuan
2002-04-29  9:06                               ` VLAN and Network Drivers 2.4.x jd
2002-04-25 10:20           ` Matthias Andree
2002-04-24 16:39     ` AW: " Pasi Kärkkäinen
2002-04-24 16:18 ` Ben Greear
2002-04-24 16:46   ` AW: " jd
  -- strict thread matches above, loose matches on Subject: below --
2002-05-01  2:27 what replaces tq_scheduler in 2.4 Andrew_Purtell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox