700-mvneta-tx-queue-workaround.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. The hardware queue scheduling is apparently configured with fixed
  2. priorities, which creates a nasty fairness issue where traffic from one
  3. CPU can starve traffic from all other CPUs.
  4. Work around this issue by forcing all tx packets to go through one CPU,
  5. until this issue is fixed properly.
  6. Signed-off-by: Felix Fietkau <[email protected]>
  7. ---
  8. --- a/drivers/net/ethernet/marvell/mvneta.c
  9. +++ b/drivers/net/ethernet/marvell/mvneta.c
  10. @@ -5233,6 +5233,16 @@ static int mvneta_setup_tc(struct net_de
  11. }
  12. }
  13. +#ifndef CONFIG_ARM64
  14. +static u16 mvneta_select_queue(struct net_device *dev, struct sk_buff *skb,
  15. + struct net_device *sb_dev)
  16. +{
  17. + /* XXX: hardware queue scheduling is broken,
  18. + * use only one queue until it is fixed */
  19. + return 0;
  20. +}
  21. +#endif
  22. +
  23. static const struct net_device_ops mvneta_netdev_ops = {
  24. .ndo_open = mvneta_open,
  25. .ndo_stop = mvneta_stop,
  26. @@ -5243,6 +5253,9 @@ static const struct net_device_ops mvnet
  27. .ndo_fix_features = mvneta_fix_features,
  28. .ndo_get_stats64 = mvneta_get_stats64,
  29. .ndo_eth_ioctl = mvneta_ioctl,
  30. +#ifndef CONFIG_ARM64
  31. + .ndo_select_queue = mvneta_select_queue,
  32. +#endif
  33. .ndo_bpf = mvneta_xdp,
  34. .ndo_xdp_xmit = mvneta_xdp_xmit,
  35. .ndo_setup_tc = mvneta_setup_tc,