public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch
@ 2015-06-11 15:10 Codrin Ciubotariu
  2015-06-11 15:10 ` [U-Boot] [PATCH] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier Codrin Ciubotariu
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Codrin Ciubotariu @ 2015-06-11 15:10 UTC (permalink / raw)
  To: u-boot

This patch set adds several features for VSC9953 L2 Switch:
	- VLAN configuration;
	- port statistics;
	- FDB table operations;
	- enable/disable HW learning;
	- private/shared VLAN learning.

Also, the parser needed to be changed to allow commands
with optional parameters and to allow developers to easily
add new commands.

Since new features are added, the default configuration
had to be changed to:
	- HW learning enabled on all ports; (HW default)
	- All ports are in VLAN 1;
	- All ports are VLAN aware;
	- All ports have POP_COUNT 1;
	- All ports have PVID 1;
	- All ports have TPID 0x8100; (HW default)
	- All ports tag frames classified to all VLANs that are not PVID;

If the user decides to compile the VSC9953 driver without the support
for commands, the above default configuration should be sufficient
to make the L2 Switch work in unmanaged mode.

New supported commands:
	- show a port's statistics;
	- enable/disable/show learning configuration on a port;
	- add/delete a MAC entry in FDB; show the FDB table;
	- add/remove a VLAN to/from a port (VLAN members);
	- set/show PVID (ingress and egress VLAN tagging) for a port;
	- set egress tagging mod for a port;
	- configure VID source for egress tag;
	- make VLAN learning shared or private;
	- enable/disable VLAN ingress filtering on a port.

Codrin Ciubotariu (10):
  drivers/net/vsc9953: Cleanup patch
  drivers/net/vsc9953: Fix missing reserved register
  drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch
  drivers/net/vsc9953: Refractor the parser for VSC9953 commands
  drivers/net/vsc9953: Add command to show/clear port counters
  drivers/net/vsc9953: Add commands to enable/disable HW learning
  drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953
  drivers/net/vsc9953: Add VLAN commands for VSC9953
  drivers/net/vsc9953: Add command for shared/private VLAN learning
  drivers/net/vsc9953: Add commands for VLAN ingress filtering

 drivers/net/vsc9953.c | 2816 ++++++++++++++++++++++++++++++++++++++++++++++---
 include/vsc9953.h     |  265 ++++-
 2 files changed, 2946 insertions(+), 135 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch
@ 2015-06-11 15:07 Codrin Ciubotariu
  2015-06-11 15:07 ` [U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch Codrin Ciubotariu
  0 siblings, 1 reply; 14+ messages in thread
From: Codrin Ciubotariu @ 2015-06-11 15:07 UTC (permalink / raw)
  To: u-boot

This patch set adds several features for VSC9953 L2 Switch:
	- VLAN configuration;
	- port statistics;
	- FDB table operations;
	- enable/disable HW learning;
	- private/shared VLAN learning.

Also, the parser needed to be changed to allow commands
with optional parameters and to allow developers to easily
add new commands.

Since new features are added, the default configuration
had to be changed to:
	- HW learning enabled on all ports; (HW default)
	- All ports are in VLAN 1;
	- All ports are VLAN aware;
	- All ports have POP_COUNT 1;
	- All ports have PVID 1;
	- All ports have TPID 0x8100; (HW default)
	- All ports tag frames classified to all VLANs that are not PVID;

If the user decides to compile the VSC9953 driver without the support
for commands, the above default configuration should be sufficient
to make the L2 Switch work in unmanaged mode.

New supported commands:
	- show a port's statistics;
	- enable/disable/show learning configuration on a port;
	- add/delete a MAC entry in FDB; show the FDB table;
	- add/remove a VLAN to/from a port (VLAN members);
	- set/show PVID (ingress and egress VLAN tagging) for a port;
	- set egress tagging mod for a port;
	- configure VID source for egress tag;
	- make VLAN learning shared or private;
	- enable/disable VLAN ingress filtering on a port.

Codrin Ciubotariu (10):
  drivers/net/vsc9953: Cleanup patch
  drivers/net/vsc9953: Fix missing reserved register
  drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch
  drivers/net/vsc9953: Refractor the parser for VSC9953 commands
  drivers/net/vsc9953: Add command to show/clear port counters
  drivers/net/vsc9953: Add commands to enable/disable HW learning
  drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953
  drivers/net/vsc9953: Add VLAN commands for VSC9953
  drivers/net/vsc9953: Add command for shared/private VLAN learning
  drivers/net/vsc9953: Add commands for VLAN ingress filtering

 drivers/net/vsc9953.c | 2816 ++++++++++++++++++++++++++++++++++++++++++++++---
 include/vsc9953.h     |  265 ++++-
 2 files changed, 2946 insertions(+), 135 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-06-11 15:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-11 15:10 [U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 02/10] drivers/net/vsc9953: Fix missing reserved register Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 03/10] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 04/10] drivers/net/vsc9953: Refractor the parser for VSC9953 commands Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 05/10] drivers/net/vsc9953: Add command to show/clear port counters Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 06/10] drivers/net/vsc9953: Add commands to enable/disable HW learning Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 07/10] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953 Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 08/10] drivers/net/vsc9953: Add VLAN commands " Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 09/10] drivers/net/vsc9953: Add command for shared/private VLAN learning Codrin Ciubotariu
2015-06-11 15:10 ` [U-Boot] [PATCH 10/10] drivers/net/vsc9953: Add commands for VLAN ingress filtering Codrin Ciubotariu
  -- strict thread matches above, loose matches on Subject: below --
2015-06-11 15:07 [U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch Codrin Ciubotariu
2015-06-11 15:07 ` [U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch Codrin Ciubotariu
2015-06-11 15:14   ` Codrin Constantin Ciubotariu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox