OpenCloudOS-Kernel/drivers/net/dsa/qca
Christian Marangi 0d4636f7d7 net: dsa: qca8k: fix ethtool autocast mib for big-endian systems
The switch sends autocast mib in little-endian. This is problematic for
big-endian system as the values needs to be converted.

Fix this by converting each mib value to cpu byte order.

Fixes: 5c957c7ca7 ("net: dsa: qca8k: add support for mib autocast in Ethernet packet")
Tested-by: Pawel Dembicki <paweldembicki@gmail.com>
Tested-by: Lech Perczak <lech.perczak@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-10-14 08:22:28 +01:00
..
Kconfig net: dsa: qca8k: move driver to qca dir 2022-07-15 11:57:13 +01:00
Makefile net: dsa: qca8k: move mib struct to common code 2022-07-28 22:24:38 -07:00
ar9331.c net: dsa: ar9331: remove unnecessary dev_set_drvdata() 2022-09-22 19:30:38 -07:00
qca8k-8xxx.c net: dsa: qca8k: fix ethtool autocast mib for big-endian systems 2022-10-14 08:22:28 +01:00
qca8k-common.c net: dsa: propagate extack to port_lag_join 2022-09-20 10:32:36 +02:00
qca8k.h net: dsa: propagate extack to port_lag_join 2022-09-20 10:32:36 +02:00