Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1395564
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH net-next 14/20] net: dsa: mv88e6xxx: factorize VLAN Ethertype |
| Date | 2016-05-06 03:00 +0200 |
| Message-ID | <rvChB-2DB-13@gated-at.bofh.it> (permalink) |
| References | <rvAfL-Dg-3@gated-at.bofh.it> <rvAfL-Dg-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, May 05, 2016 at 06:40:58PM -0400, Vivien Didelot wrote:
> Only the 6131 driver was setting the VLAN Ethertype to 0x8100. Set it to
> all models.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
> ---
> drivers/net/dsa/mv88e6131.c | 9 ++++-----
> drivers/net/dsa/mv88e6xxx.c | 8 ++++++++
> drivers/net/dsa/mv88e6xxx.h | 7 +++++++
> 3 files changed, 19 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c
> index 013668c..4c0b1e9 100644
> --- a/drivers/net/dsa/mv88e6131.c
> +++ b/drivers/net/dsa/mv88e6131.c
> @@ -25,6 +25,7 @@ static const struct mv88e6xxx_info mv88e6131_table[] = {
> .num_databases = 256,
> .num_ports = 11,
> .flags = MV88E6XXX_FLAG_ATU |
> + MV88E6XXX_FLAG_CORE_TAG_TYPE |
> MV88E6XXX_FLAG_PPU |
> MV88E6XXX_FLAG_VLANTABLE |
> MV88E6XXX_FLAG_VTU,
> @@ -35,6 +36,7 @@ static const struct mv88e6xxx_info mv88e6131_table[] = {
> .num_databases = 4096,
> .num_ports = 10,
> .flags = MV88E6XXX_FLAG_ATU |
> + MV88E6XXX_FLAG_CORE_TAG_TYPE |
> MV88E6XXX_FLAG_PPU |
> MV88E6XXX_FLAG_VLANTABLE |
> MV88E6XXX_FLAG_VTU,
> @@ -45,6 +47,7 @@ static const struct mv88e6xxx_info mv88e6131_table[] = {
> .num_databases = 256,
> .num_ports = 8,
> .flags = MV88E6XXX_FLAG_ATU |
> + MV88E6XXX_FLAG_CORE_TAG_TYPE |
> MV88E6XXX_FLAG_PPU |
> MV88E6XXX_FLAG_VLANTABLE |
> MV88E6XXX_FLAG_VTU,
> @@ -55,6 +58,7 @@ static const struct mv88e6xxx_info mv88e6131_table[] = {
> .num_databases = 256,
> .num_ports = 10,
> .flags = MV88E6XXX_FLAG_ATU |
> + MV88E6XXX_FLAG_CORE_TAG_TYPE |
> MV88E6XXX_FLAG_PPU |
> MV88E6XXX_FLAG_VLANTABLE |
> MV88E6XXX_FLAG_VTU,
Hi Vivien
Rather than repeating these flags again and again, could you add one
#define containing the flags, and then use that to initialise .flags.
Andrew
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH net-next 14/20] net: dsa: mv88e6xxx: factorize VLAN Ethertype Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-05-06 00:50 +0200
Re: [RFC PATCH net-next 14/20] net: dsa: mv88e6xxx: factorize VLAN Ethertype Andrew Lunn <andrew@lunn.ch> - 2016-05-06 03:00 +0200
Re: [RFC PATCH net-next 14/20] net: dsa: mv88e6xxx: factorize VLAN Ethertype Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-05-06 17:20 +0200
csiph-web