# RE: \[PATCH net\] net: enetc: make sure all traffic classes can send large frames

- From: Claudiu Manoil \<claudiu.manoil@nxp.com\>
- Date: 2021-10-21 09:37:27 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/10/11214076
- Thread: https://ratatoskr.run/netdev/2021/10/11214008/t.md

```text
> -----Original Message-----
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
> Sent: Wednesday, October 20, 2021 8:34 PM
[...]
> Subject: [PATCH net] net: enetc: make sure all traffic classes can send large
> frames
> 
> The enetc driver does not implement .ndo_change_mtu, instead it
> configures the MAC register field PTC{Traffic Class}MSDUR[MAXSDU]
> statically to a large value during probe time.
> 
> The driver used to configure only the max SDU for traffic class 0, and
> that was fine while the driver could only use traffic class 0. But with
> the introduction of mqprio, sending a large frame into any other TC than
> 0 is broken.
> 
> This patch fixes that by replicating per traffic class the static
> configuration done in enetc_configure_port_mac().
> 
> Fixes: cbe9e835946f ("enetc: Enable TC offloading with mqprio")
> Reported-by: Richie Pearn <redacted>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---

Reviewed-by: <Claudiu Manoil <claudiu.manoil@nxp.com>
```
