]> www.infradead.org Git - users/hch/misc.git/commit
net: libwx: fix Tx L4 checksum
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 24 Mar 2025 10:32:35 +0000 (18:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 21:00:32 +0000 (14:00 -0700)
commitc7d82913d5f9e97860772ee4051eaa66b56a6273
tree83f37623bafaff0dfde2e1cd8e7b02e5bf48256e
parenta44940d094afa2e04b5b164b1e136fc18bcb4a2d
net: libwx: fix Tx L4 checksum

The hardware only supports L4 checksum offload for TCP/UDP/SCTP protocol.
There was a bug to set Tx checksum flag for the other protocol that results
in Tx ring hang. Fix to compute software checksum for these packets.

Fixes: 3403960cdf86 ("net: wangxun: libwx add tx offload functions")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20250324103235.823096-2-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_lib.c