Re: Distributed Switch Architecture(DSA)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lennert Buytenhek
Date: Friday, June 18, 2010 - 1:12 pm

On Fri, Jun 18, 2010 at 05:13:03PM +0200, Joakim Tjernlund wrote:


I think you overestimate the effect that address learning will have on
the host CPU.  It only needs to happen for the first packet for every
new MAC address, and address flooding attacks is something you'll need
to address in either case.

If you're really worried about this scenario, then just configure your
boot loader to bridge all switch ports together, and don't load the DSA
driver.  The switch will then appear as a single interface, 'eth0' (or
whatever your SoC calls it), over which you can talk directly without
any form of tagging.  You won't be able to use any advanced features,
though.



Yes.  But that's really the best way to do it, in my humble opinion.

If you don't go the host networking stack integration route, you end
up with something like the vendor drivers.  Which work fine for most
scenarios.. until you want to do something like talking TCP/IP using
the host TCP stack over some of the switch ports, at which point the
lack of host networking stack integration comes to bite you.



If you transmit a packet onto 'lan', it will be sent to the switch chip
with an "untagged" DSA tag.  If you transmit a packet onto 'lan.123',
it will be sent to the switch chip with a "tagged" DSA tag.  See
net/dsa/tag_dsa.c for details.



Where the 'resource waste' is on the order of a couple of tens or
hundreds of kilobytes of RAM.  If this is a problem for your host
CPU, I think you have bigger problems anyway.



Sounds good.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Distributed Switch Architecture(DSA), Joakim Tjernlund, (Fri Jun 18, 12:06 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Fri Jun 18, 12:33 am)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Fri Jun 18, 2:15 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Fri Jun 18, 2:59 am)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Fri Jun 18, 4:09 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Fri Jun 18, 5:12 am)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Fri Jun 18, 8:13 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Fri Jun 18, 1:12 pm)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Sat Jun 19, 7:22 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Sat Jun 19, 9:56 am)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Sat Jun 19, 11:48 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Sat Jun 19, 11:57 am)
Re: Distributed Switch Architecture(DSA), Joakim Tjernlund, (Sun Jun 20, 7:41 am)
Re: Distributed Switch Architecture(DSA), Lennert Buytenhek, (Mon Jul 5, 10:24 am)