Message ID | 20240703224850.1226697-7-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/google/gve/gve_rx_dqo.c b/drivers/net/ethernet/google/gve/gve_rx_dqo.c index 1154c1d8f66f..d3d6d7c6f253 100644 --- a/drivers/net/ethernet/google/gve/gve_rx_dqo.c +++ b/drivers/net/ethernet/google/gve/gve_rx_dqo.c @@ -625,9 +625,11 @@ static void gve_rx_skb_csum(struct sk_buff *skb, case GVE_L4_TYPE_TCP: case GVE_L4_TYPE_UDP: case GVE_L4_TYPE_ICMP: - case GVE_L4_TYPE_SCTP: skb->ip_summed = CHECKSUM_UNNECESSARY; break; + case GVE_L4_TYPE_SCTP: + skb_set_csum_crc32_unnecessary(skb); + break; default: break; }
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/google/gve/gve_rx_dqo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)