Its done to save stack space. There's currently a discussion about making loopback use netif_receive_skb in case enough stack is still available. Once that patch gets merged I'll change VLAN in a similar way. --
Another possibility would be to allow ->func() of packet_type to return an skb for reprocessing... --
That should work fine for VLAN, but not for loopback since its called on the TX path. I think I prefer Eric's suggested way because it doesn't require to change all the other existing packet_type users. --
From: Patrick McHardy <kaber@trash.net> I think Al's idea is the most elegant proposed so far and we could do something similar on the TX side as well. Yes, it means diddling with a lot of call sites, but we do that all the time and it's heaps better then these "check the stack space remaining" hacks being proposed. --
Agreed on second thought, I guess I was just being lazy :) --
There was a patch floating around fixing VLAN + Bridge, I'm wondering if it got any traction (ie merged), or if this would affect future merge of that feature? -- Jeremy Jackson Coplanar Networks (519)489-4903 http://www.coplanar.net jerj@coplanar.net --
Whats broken with VLAN + Bridge? Do you have a pointer to this patch? --
On Fri, 11 Apr 2008 15:02:39 +0200 This is sitting in my to be examined queue... Subject: Re: [Bridge] [PATCH] Add vlan id to bridge forward database Message-ID: <20080402093004.GA13430@localhost> References: <4766a3d1.02ab100a.0be8.6fdc@mx.google.com> <20071217085349.729e5c17@deepthought> <20080128153914.GA5880@localhost> <20080317113537.496d9347@extreme> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080317113537.496d9347@extreme> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Received-SPF: pass (domain of jaime.medrano@gmail.com designates 209.85.134.190 as permitted sender) X-Spam-Status: No, hits=-6.312 required=5 tests=BAYES_00,OSDL_HEADER_SUBJECT_BRACKETED,PATCH_SUBJECT_OSDL X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 It will work with drivers with hardware accel VLAN receive support if no vlan device is attached to the network device of one of the ports of the bridge. It will also work if a vlan device is attached to the bridge device. In those cases, hw accel is not used. However, it won't work if a vlan device is attached to the network device of one of the ports. Hw accel will be used and the vlan tag won't be available. Anyway, this is a bad idea since normal bridging won't work either. The vlan won't be regenerated at bridge output since current bridge code doesn't get that tag. If the vlan device is attached to the bridge device then bridging has no problems as hw accel receiving is not used. The patch has also been generalized to support any number of vlan nested tags. Vlan tag recording can be disabled at all if BR_MAX_VLAN_TAGS is set to 0. --- Subject: [PATCH] Add vlan tags to bridge forward database This makes forwarding table aware of 802.1Q vlan tags and stores vlan ids with MACs in the table. It solves problems when having same MAC o...
Thanks for the pointer, I'll try to have a closer look this weekend. --
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
| David Miller | Slow DOWN, please!!! |
| Mark Fasheh | [PATCH 0/39] Ocfs2 updates for 2.6.28 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Shawn O. Pearce | Re: pack operation is thrashing my server |
| Pierre Habouzit | git send-email improvements |
| Matthieu Moy | git push to a non-bare repository |
| Shawn O. Pearce | libgit2 - a true git library |
| Elad Efrat | Integrating securelevel and kauth(9) |
| Hubert Feyrer | Re: Compressed vnd handling tested successfully |
| Lord Isildur | Re: Fork bomb protection patch |
| Matt Thomas | Re: FFS journal |
| Will Maier | cron doesn't run commands in /etc/crontab? |
| Richard Stallman | Real men don't attack straw men |
| Harald Dunkel | Re: Packet Filter: how to keep device names on hardware failure? |
| Jordi Espasa Clofent | Resolving dependencies with pkg_add |
| Question on swap as ramdisk partition | 47 minutes ago | Linux kernel |
| Netfilter kernel module | 11 hours ago | Linux kernel |
| serial driver xmit problem | 14 hours ago | Linux kernel |
| Why Windows is better than Linux | 14 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 20 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 2 days ago | Linux general |
