Re: Question on switchdev
From: Andrew Lunn <andrew@lunn.ch>
Date: 2016-03-09 00:39:24
From: Andrew Lunn <andrew@lunn.ch>
Date: 2016-03-09 00:39:24
Andrew,quoted
From the high level, it looks like netcp switch meets the specificationsof a DSA hardware. Can you point me to a specific implementation that I can use as an example to implement this for netcp?
You need two parts:
A tagging implementation, in net/dsa/tag_*.c. They are all pretty
similar, and all pretty simple.
A switch driver. driver/net/dsa/mv88e6060.c is the simplest. I would
suggest your first submission implements similar features as to what
this driver does. This is very minimalistic, but a good start. Once
that is accepted, you can incrementally add more features.
Andrew