mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Ben Greear <greearb@candelatech.com>,
	linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: [PATCH] hashed device lookup (Does NOT meet Linus' sumission
Date: Sun, 7 Jan 2001 20:53:15 +0200	[thread overview]
Message-ID: <20010107205315.F25076@mea-ext.zmailer.org> (raw)
In-Reply-To: <3A58BD44.1381D182@candelatech.com> <E14FKDI-00033e-00@the-village.bc.nu>
In-Reply-To: <E14FKDI-00033e-00@the-village.bc.nu>; from alan@lxorguk.ukuu.org.uk on Sun, Jan 07, 2001 at 06:06:37PM +0000

On Sun, Jan 07, 2001 at 06:06:37PM +0000, Alan Cox wrote:
> > Um, what about people running their box as just a VLAN router/firewall?
> > That seems to be one of the principle uses so far.  Actually, in that case
> > both VLAN and IP traffic would come through, so it would be a tie if VLAN
> > came first, but non-vlan traffic would suffer worse.
> 
> Why would someone filter between vlans when any node on each vlan can happily
> ignore the vlan partitioning

	VLANs are Level-2, that is SWITCHING.

	They have no real meaning unless you have a switching fabric,
	in which they present ways to hard-partition ports to different
	switching domains without having physically separate cabling.

	Normal hosts are connected on non-truncking ports, and only some
	rare systems are connected to 802.1Q trunks so they can access
	multiple VLANs inside the fabric.

	No ordinary hosts are able to choose at which VLANs they are.
	Truncking ports have ways to control which VLANs are allowed
	to go thru them (at least at Cisco hardware I am familiar with).

> > So, how can I make sure that it is second in the list?
> 
> Register vlan in the top level protocol hash then have that yank the header
> and feed the packets through the hash again.

	That is what the two existing VLAN codes for Linux do now.

	Better(?) way could be to have a way to have device specific
	reception vector in addition to xmit vector.  That way we could
	stack "Layer-2 protocols", like 802.1Q and (to an extent) even
	802 bridging.

	See  ftp://zmailer.org/linux/netif_rx.patch

	After all, if you have a way to plumb reception to an optional
	bridging layer, you propably would not need netif_rx() contained
	bridging code.

> > > Question: How do devices with hardware vlan support fit into your model ?
> > I don't know of any, and I'm not sure how they would be supported.
> 
> Several cards have vlan ability, but Matti reports they just lose the header
> not filter on it if I understood him

	No you didn't understand.

	Nothing is lost, it relates to hardware assisted received
	IP frame TCP/UDP checksumming by the network cards.  Some
	cards support that, some support it even in presense of
	802.1Q TAG header.

	I don't yet see any cards which have hardware assist for
	IPv6 checksumming.  VLAN tags or not.

	Reception must handle at first tearing off the VLAN header
	when receiving the frame, then return back to  netif_rx()
	to see what was inside - SNAP frame, IPv4 frame, whatever.

/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-07 18:54 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08  8:12 [PATCH] hashed device lookup (New Benchmarks) Ben Greear
2001-01-06 21:33 ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) Ben Greear
2001-01-06 23:17   ` David S. Miller
2001-01-07  4:06     ` Ben Greear
2001-01-07 13:42       ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission Alan Cox
2001-01-07 15:33         ` Matti Aarnio
2001-01-07 16:46           ` Alan Cox
2001-01-07 17:32             ` Matti Aarnio
2001-01-07 19:02         ` Ben Greear
2001-01-07 18:06           ` Alan Cox
2001-01-07 18:53             ` Matti Aarnio [this message]
2001-01-07 19:30             ` Ben Greear
2001-01-07 18:30               ` Alan Cox
2001-01-07 22:40             ` 5116
2001-01-08  2:19             ` David Ford
2001-01-09 20:25             ` Christopher E. Brown
2001-01-10  2:47               ` Ben Greear
2001-01-07 18:21           ` jamal
2001-01-07 19:00             ` Matti Aarnio
2001-01-07 19:10               ` jamal
2001-01-07 19:24                 ` Matti Aarnio
2001-01-08  0:21                   ` jamal
2001-01-07 19:37             ` Ben Greear
2001-01-07 18:53               ` jamal
2001-01-07  5:36     ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) David S. Miller
2001-01-07  3:29   ` Chris Wedgwood
2001-01-07  6:15     ` Ben Greear
2001-01-07 10:22     ` David Ford
2001-01-07 12:01       ` David S. Miller
2001-01-08  5:32         ` Andi Kleen
2001-01-08  6:12           ` Chris Wedgwood
2001-01-08  6:26             ` Andi Kleen
2001-01-08  6:57               ` David Ford
2001-01-08 13:08                 ` jamal
2001-01-09 13:28                   ` Blu3Viper
2001-01-08  6:13           ` Blu3Viper
2001-01-07 12:13       ` Chris Wedgwood
2001-01-07 12:19         ` David Ford
2001-01-07 16:56     ` jamal
2001-01-07 17:37       ` Gleb Natapov
2001-01-07 18:02         ` routable interfaces WAS( " jamal
2001-01-07 19:21           ` routable interfaces WAS( Re: [PATCH] hashed device lookup (DoesNOT " Ben Greear
2001-01-07 18:29             ` jamal
2001-01-07 18:51               ` Gleb Natapov
2001-01-07 19:05                 ` jamal
2001-01-07 19:19               ` routable interfaces WAS( Re: [PATCH] hashed device lookup(DoesNOT " Sandy Harris
2001-01-07 20:42                 ` Ben Greear
2001-01-08  0:37                   ` jamal
2001-01-08  5:25                     ` routable interfaces WAS( Re: [PATCH] hashed device lookup(DoesNOTmeet " Ben Greear
2001-01-08 13:05                       ` jamal
2001-01-07  3:29   ` [PATCH] hashed device lookup (Does NOT meet " Andi Kleen
2001-01-07  4:00     ` jamal
2001-01-07  4:06       ` Andi Kleen
2001-01-07  5:43       ` David S. Miller
2001-01-07 11:40         ` [little bit OT] ip _IS_ _NOT_ ifconfig and route ! (was Re: [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!)) Henning P. Schmiedehausen
2001-01-07 11:50         ` David S. Miller
2001-01-07 13:47         ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission Alan Cox
2001-01-07 16:12           ` jamal
2001-01-07 16:51             ` Alan Cox
2001-01-07 15:56         ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) jamal
2001-01-07 16:30           ` Gleb Natapov
2001-01-07 16:36             ` jamal
2001-01-07 19:54           ` [PATCH] hashed device lookup (Does NOT meet Linus' sumissionpolicy!) Ben Greear
2001-01-07  6:24       ` Ben Greear
2001-01-07  5:29         ` Andi Kleen
2001-01-07  6:22     ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) Ben Greear
2001-01-07  5:27       ` Andi Kleen
2001-01-07  8:11         ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) (Benchmarks) Ben Greear
2001-01-07  7:15           ` Andi Kleen
2001-01-08  7:00           ` [PATCH] hashed device lookup (New Benchmarks) David S. Miller
2001-01-08 16:26             ` Ben Greear
2001-01-08 16:50               ` Andi Kleen
2001-01-09 16:27                 ` Ben Greear
2001-01-07 13:50       ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission Alan Cox
2001-01-07 16:44         ` Miquel van Smoorenburg
2001-01-07 19:09         ` Ben Greear
2001-01-07  5:40   ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) David S. Miller

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=20010107205315.F25076@mea-ext.zmailer.org \
    --to=matti.aarnio@zmailer.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=greearb@candelatech.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®