[net-next,v2,0/2] net: dsa: microchip: add support for credit based shaper

Message ID 20230120052135.32120-1-arun.ramadoss@microchip.com
Headers
Series net: dsa: microchip: add support for credit based shaper |

Message

Arun Ramadoss Jan. 20, 2023, 5:21 a.m. UTC
  LAN937x switch family, KSZ9477, KSZ9567, KSZ9563 and KSZ8563 supports
the credit based shaper. But there were few difference between LAN937x and KSZ
switch like
- number of queues for LAN937x is 8 and for others it is 4.
- size of credit increment register for LAN937x is 24 and for other is 16-bit.
This patch series add the credit based shaper with common implementation for
LAN937x and KSZ swithes.

v1 -> v2
- Added the check for divide by zero in cinc_cal()
- Port queue is splitted based on dev->info->tc_num_queues

RFC -> Patch v1
- Rebased to latest net-next

Arun Ramadoss (2):
  net: dsa: microchip: enable port queues for tc mqprio
  net: dsa: microchip: add support for credit based shaper

 drivers/net/dsa/microchip/ksz9477.c      |  25 +++++
 drivers/net/dsa/microchip/ksz9477.h      |   2 +
 drivers/net/dsa/microchip/ksz9477_reg.h  |  33 ++----
 drivers/net/dsa/microchip/ksz_common.c   | 130 +++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_common.h   |  21 ++++
 drivers/net/dsa/microchip/lan937x.h      |   1 +
 drivers/net/dsa/microchip/lan937x_main.c |   9 ++
 drivers/net/dsa/microchip/lan937x_reg.h  |   3 +
 net/dsa/tag_ksz.c                        |  15 +++
 9 files changed, 213 insertions(+), 26 deletions(-)


base-commit: 1038bfb23649faf47fc0714dea42f472cdcf1784
  

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 24, 2023, 6:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 20 Jan 2023 10:51:33 +0530 you wrote:
> LAN937x switch family, KSZ9477, KSZ9567, KSZ9563 and KSZ8563 supports
> the credit based shaper. But there were few difference between LAN937x and KSZ
> switch like
> - number of queues for LAN937x is 8 and for others it is 4.
> - size of credit increment register for LAN937x is 24 and for other is 16-bit.
> This patch series add the credit based shaper with common implementation for
> LAN937x and KSZ swithes.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/2] net: dsa: microchip: enable port queues for tc mqprio
    https://git.kernel.org/netdev/net-next/c/e30f33a5f5c7
  - [net-next,v2,2/2] net: dsa: microchip: add support for credit based shaper
    https://git.kernel.org/netdev/net-next/c/71d7920fb2d1

You are awesome, thank you!