Re: 回覆: [PATCH] net: phy: ncsi: Correct the endian of the checksum

2024-03-03 Thread Dan Carpenter
On Sun, Mar 03, 2024 at 02:14:43AM +, Jacky Chou wrote: > Hi Dan Carpenter, > > I have verified it on the little-endian platform, such as ASPEED AST2600. Awesome. Thanks for this. > I think put_unaligned_be32() and htonl() functions have no effect on > big-endian platforms. > And keep put_

回覆: [PATCH] net: phy: ncsi: Correct the endian of the checksum

2024-03-02 Thread Jacky Chou
Hi Dan Carpenter, I have verified it on the little-endian platform, such as ASPEED AST2600. I think put_unaligned_be32() and htonl() functions have no effect on big-endian platforms. And keep put_unaligned_be32() to help access the unaligned memory, such as pchecksum variable. Thanks, Jacky _