Skip to content

Commit

Permalink
userspace: Correctly set ip offload flag in native tunneling.
Browse files Browse the repository at this point in the history
Coverity identified the following issue

CID 425094: (openvswitch#1 of 1): Unchecked return value (CHECKED_RETURN)
4. check_return: Calling dp_packet_hwol_tx_ip_csum without checking
return value (as is done elsewhere 9 out of 11 times).

This appears to be a true positive, the fields getter was called instead
of its setter.

Fixes: 084c808 ("userspace: Support VXLAN and GENEVE TSO.")
Reported-by: Eelco Chaudron <[email protected]>
Signed-off-by: Mike Pattrick <[email protected]>
  • Loading branch information
mkp-rh committed Aug 27, 2024
1 parent dbeabcc commit 6f2359f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netdev-native-tnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ dp_packet_tnl_ol_process(struct dp_packet *packet,

if (IP_VER(ip->ip_ihl_ver) == 4) {
dp_packet_hwol_set_tx_ipv4(packet);
dp_packet_hwol_tx_ip_csum(packet);
dp_packet_hwol_set_tx_ip_csum(packet);
} else if (IP_VER(ip->ip_ihl_ver) == 6) {
dp_packet_hwol_set_tx_ipv6(packet);
}
Expand Down

0 comments on commit 6f2359f

Please sign in to comment.