af_packet: conditionally set checksum offload based on TCP/UDP offload flags 84/43084/3
authorMohsin Kazmi <[email protected]>
Wed, 4 Jun 2025 11:14:05 +0000 (11:14 +0000)
committerFlorin Coras <[email protected]>
Fri, 6 Jun 2025 04:52:29 +0000 (04:52 +0000)
commitcdfdbebe38dd27c72fd17af81d8203e5e27dff07
tree2382c606a40224520a740777add12e89b9bbcb17
parentd08b7de9e05f3e22f8c23d35347a3c77879c5407
af_packet: conditionally set checksum offload based on TCP/UDP offload flags

Type: fix

Previously, the af_packet device node unconditionally set the checksum offload
flag and the checksum start offset, regardless of whether TCP/UDP checksum
offload flags were set.
This patch updates the logic to apply these settings only when the TCP/UDP
offload flags are explicitly set.

Signed-off-by: Mohsin Kazmi <[email protected]>
Change-Id: If0f98db5b654a22995e5c7a82b5f793aad83bb88
src/plugins/af_packet/device.c