On Sat, Oct 04, 2008 at 12:22:37PM +0100, Ben Hutchings wrote:
OK, I'll do that.
The original DSA tagging format can work with any NIC, as long as you
hook up that NIC directly to a DSA switch chip instead of to a PHY. In
embedded designs you mostly see platform bus drivers like mv643xx_eth
and gianfar and such, but there's no reason you can't do it with any
other MAC that exposes a (R)(G)MII interface.
The only reason that eth_type_trans() needs a hack is that the original
DSA tagging format has information starting right after the ethernet
source address, so there's no way to tell that original DSA tagged
frames are in fact original DSA tagged frames. (The way we tell is by
having the DSA switch driver decide -- it configures the directly
attached switch chip to always send DSA tagged packets to the cpu's
switch port, and then forces all packets received on the underlying
ethernet device to get ETH_P_DSA assigned to skb->protocol.)
--
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