diff options
author | Christian Marangi <[email protected]> | 2022-10-12 19:18:36 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-10-14 08:22:28 +0100 |
commit | a2550d3ce53c68f54042bc5e468c4d07491ffe0e (patch) | |
tree | 7b4b095a99ab0cbcf8dad9f77408287805fbfa2f /drivers/usb/cdns3/cdns3-ti.c | |
parent | 777ecaabd614d47c482a5c9031579e66da13989a (diff) |
net: dsa: qca8k: fix inband mgmt for big-endian systems
The header and the data of the skb for the inband mgmt requires
to be in little-endian. This is problematic for big-endian system
as the mgmt header is written in the cpu byte order.
Fix this by converting each value for the mgmt header and data to
little-endian, and convert to cpu byte order the mgmt header and
data sent by the switch.
Fixes: 5950c7c0a68c ("net: dsa: qca8k: add support for mgmt read/write in Ethernet packet")
Tested-by: Pawel Dembicki <[email protected]>
Tested-by: Lech Perczak <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
Reviewed-by: Lech Perczak <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions