Message ID | 20240703224850.1226697-11-tom@herbertland.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | crc-offload: Split RX CRC offload from csum offload | expand |
diff --git a/drivers/net/ethernet/wangxun/libwx/wx_lib.c b/drivers/net/ethernet/wangxun/libwx/wx_lib.c index ac0e1d42fe55..8f4ffc961abf 100644 --- a/drivers/net/ethernet/wangxun/libwx/wx_lib.c +++ b/drivers/net/ethernet/wangxun/libwx/wx_lib.c @@ -558,7 +558,10 @@ static void wx_rx_checksum(struct wx_ring *ring, } /* It must be a TCP or UDP or SCTP packet with a valid checksum */ - skb->ip_summed = CHECKSUM_UNNECESSARY; + if (dptype.prot == WX_DEC_PTYPE_PROT_SCTP) + skb_set_csum_crc32_unnecessary(skb); + else + skb->ip_summed = CHECKSUM_UNNECESSARY; /* If there is an outer header present that might contain a checksum * we need to bump the checksum level by 1 to reflect the fact that
When a validated offload CRC for SCTP is detected call skb_set_csum_crc32_unnessary instead of setting CHECKSUM_UNNECESSARY Signed-off-by: Tom Herbert <tom@herbertland.com> --- drivers/net/ethernet/wangxun/libwx/wx_lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)