mbox series

[RFC,net-next,0/3] net: dsa: ksz: generic port mirror function for ksz9477 based switch

Message ID 20220427162343.18092-1-arun.ramadoss@microchip.com (mailing list archive)
Headers show
Series net: dsa: ksz: generic port mirror function for ksz9477 based switch | expand

Message

Arun Ramadoss April 27, 2022, 4:23 p.m. UTC
This patch series updates the ksz9477 port_mirror_add and port_mirror_del as
per the LAN937x patch submission. It allows only one port to be sniffing port.
Then moves the function to ksz_common.c file, to have it referenced by LAN937x
based switch. And add new header file ksz_reg.h which has common register
address between them.

Arun Ramadoss (3):
  net: dsa: ksz9477: port mirror sniffing limited to one port
  net: dsa: ksz: remove duplicate ksz_cfg and ksz_port_cfg
  net: dsa: ksz: moved ksz9477 port mirror to ksz_common.c

 drivers/net/dsa/microchip/ksz8795.c     | 12 -----
 drivers/net/dsa/microchip/ksz9477.c     | 56 +------------------
 drivers/net/dsa/microchip/ksz9477_reg.h | 15 ------
 drivers/net/dsa/microchip/ksz_common.c  | 72 +++++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_common.h  | 18 +++++++
 drivers/net/dsa/microchip/ksz_reg.h     | 29 ++++++++++
 6 files changed, 121 insertions(+), 81 deletions(-)
 create mode 100644 drivers/net/dsa/microchip/ksz_reg.h


base-commit: 03fa8fc93e443e6caa485cc741328a1386c63630