All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: jamal <hadi@cyberus.ca>
Cc: Sandy Harris <sandy@storm.ca>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	"netdev@oss.sgi.com" <netdev@oss.sgi.com>
Subject: Re: routable interfaces  WAS( Re: [PATCH] hashed device  lookup(DoesNOTmeet Linus' sumission policy!)
Date: Sun, 07 Jan 2001 22:25:41 -0700	[thread overview]
Message-ID: <3A594F55.298EBCF8@candelatech.com> (raw)
In-Reply-To: <Pine.GSO.4.30.0101071922200.18916-100000@shell.cyberus.ca>

jamal wrote:
> 
> On Sun, 7 Jan 2001, Ben Greear wrote:
> 
> > Hrm, what if they just made each IP-SEC interface a net_device?  If they
> > are a routable entity, with it's own IP address, it starts to look a lot
> > like an interface/net_device.
> 
> As in my response to Matti, i thing a netdevice is a generalized link
> layer structure and should remain that way.

Yes, but VLANs are a link-layer structure too, and things like tunnels
are really link-layer too, as far as protocols using them are concerned.

With tunneling and virtual interfaces, you could conceivably do something
like:

OC3 - ATM - Ethernet - VLAN - IP - IP-Sec - IP
as well as plain old:
Ethernet - IP

Which of these are netdevices?

(I argue that at least the Ethernet-over-ATM, VLAN, and IP-Sec entities could
profit from being a net_device at it's core.)

You argue that we should split the net_device into physical and virtual portions.

Perhaps you could give an idea of the data members that would belong in the new
structures?  I argue that you lose the minute you need one in both structures :)

> > This has seeming worked well for VLANs:  Maybe net_device is already
> > general enough??
> 
> I think it is not proper to generalize netdevices for IP. I am not
> thinking of dead protocols like IPX, more of other newer encapsulations
> such as MPLS etc.

MPLS can run over FrameRelay, Ethernet, and ATM, at the moment (right?).

What if you want to run MPLS over an IP-Sec link?  If you want it to
magically work, IP-Sec could be a net_device with it's own particular
member methods and private data that let it do the right thing.

> > So, what would be the down-side of having VLANs and other virtual interfaces
> > be net_devices?  The only thing I ever thought of was the linear lookups,
> > which is why I wrote the hash code.  The beauty of working with existing
> > user-space tools should not be over-looked!
> >
> 
> IP configuration tools you mean. Fine, they should be used to configure
> "interfaces" in the way i defined them above.

Think also of creating sockets with SOCK_RAW and other lower-level
(but user-space) access to the net_device's methods.

> It makes sense from an abstraction and management perspective to have all
> virtual interfaces which run on top of a physical interface to be
> managed in conjuction with the device.

What if you had an inverse-MUX type of device that spanned two different
physical interfaces.  Then, one can go down, but the virtual interface
is still up.  So, there is not a one-to-one coorespondence.  At a higher
level, what if your interface is some tunnel running over IP.  IP in turn
can be routed out any physical interface (and may dynamically change due
to routing protocols.)

> Device goes down, you destroy them
> or send them to a shutdown state (instead of messaging) etc.
> 
> cheers,
> jamal

-- 
Ben Greear (greearb@candelatech.com)  http://www.candelatech.com
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com               http://scry.wanfear.com/~greear
-
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-08  4:23 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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  5:36     ` David S. Miller
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
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  3:29 ` [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!) Chris Wedgwood
2001-01-07  5:40   ` David S. Miller
2001-01-07  6:15   ` Ben Greear
2001-01-07 10:22   ` David Ford
2001-01-07 12:13     ` Chris Wedgwood
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: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                   ` Ben Greear [this message]
2001-01-08 13:05                     ` routable interfaces WAS( Re: [PATCH] hashed device lookup(DoesNOTmeet " 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  8:12         ` [PATCH] hashed device lookup (New Benchmarks) Ben Greear
2001-01-08  7:00           ` 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

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=3A594F55.298EBCF8@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=hadi@cyberus.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=sandy@storm.ca \
    /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.