public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/6] net: lan966x: Add switchdev and vlan support
@ 2021-12-07 12:48 Horatiu Vultur
  2021-12-07 12:48 ` [PATCH net-next v2 1/6] net: lan966x: Add registers that are used for switch and vlan functionality Horatiu Vultur
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Horatiu Vultur @ 2021-12-07 12:48 UTC (permalink / raw)
  To: davem, kuba, robh+dt, UNGLinuxDriver, linux, netdev, devicetree,
	linux-kernel
  Cc: Horatiu Vultur

This patch series extends lan966x with switchdev and vlan support.
The first patches just adds new registers and extend the MAC table to
handle the interrupts when a new address is learn/forget.
The last 2 patches adds the vlan and the switchdev support.

v1->v2:
- when allocating entries for the mac table use kzalloc instead of
  devm_kzalloc
- also use GFP_KERNEL instead of GFP_ATOMIC, because is never called
  in atomic context
- when deleting an mac table entry, the order of operations was wrong
- if ana irq is enabled make sure it gets disabled when the driver is
  removed

Horatiu Vultur (6):
  net: lan966x: Add registers that are used for switch and vlan
    functionality
  dt-bindings: net: lan966x: Extend with the analyzer interrupt
  net: lan966x: add support for interrupts from analyzer
  net: lan966x: More MAC table functionality
  net: lan966x: Add vlan support
  net: lan966x: Add switchdev support

 .../net/microchip,lan966x-switch.yaml         |   2 +
 .../net/ethernet/microchip/lan966x/Makefile   |   3 +-
 .../ethernet/microchip/lan966x/lan966x_mac.c  | 352 ++++++++++++
 .../ethernet/microchip/lan966x/lan966x_main.c |  99 +++-
 .../ethernet/microchip/lan966x/lan966x_main.h |  72 ++-
 .../ethernet/microchip/lan966x/lan966x_regs.h | 129 +++++
 .../microchip/lan966x/lan966x_switchdev.c     | 544 ++++++++++++++++++
 .../ethernet/microchip/lan966x/lan966x_vlan.c | 439 ++++++++++++++
 8 files changed, 1625 insertions(+), 15 deletions(-)
 create mode 100644 drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c
 create mode 100644 drivers/net/ethernet/microchip/lan966x/lan966x_vlan.c

-- 
2.33.0


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

end of thread, other threads:[~2021-12-09  9:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 12:48 [PATCH net-next v2 0/6] net: lan966x: Add switchdev and vlan support Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 1/6] net: lan966x: Add registers that are used for switch and vlan functionality Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 2/6] dt-bindings: net: lan966x: Extend with the analyzer interrupt Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 3/6] net: lan966x: add support for interrupts from analyzer Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 4/6] net: lan966x: More MAC table functionality Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 5/6] net: lan966x: Add vlan support Horatiu Vultur
2021-12-07 12:48 ` [PATCH net-next v2 6/6] net: lan966x: Add switchdev support Horatiu Vultur
2021-12-09  2:17 ` [PATCH net-next v2 0/6] net: lan966x: Add switchdev and vlan support Jakub Kicinski
2021-12-09  9:52   ` Horatiu Vultur

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