openvswitch: use skb_ip_totlen in conntrack
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Jan 2023 15:58:32 +0000 (10:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 04:54:27 +0000 (20:54 -0800)
commitec84c955a0d06cef31664bae328d94be7a3e2f03
tree6a275db576a14674838056a063bbd41a78000b82
parent46abd17302ba6be2e06818088e40a568e8f9e7af
openvswitch: use skb_ip_totlen in conntrack

IPv4 GSO packets may get processed in ovs_skb_network_trim(),
and we need to use skb_ip_totlen() to get iph totlen.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/conntrack.c