Commit ec84c955 authored by Xin Long's avatar Xin Long Committed by Jakub Kicinski
Browse files

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: default avatarXin Long <lucien.xin@gmail.com>
Reviewed-by: default avatarAaron Conole <aconole@redhat.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 46abd173
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1103,7 +1103,7 @@ static int ovs_skb_network_trim(struct sk_buff *skb)

	switch (skb->protocol) {
	case htons(ETH_P_IP):
		len = ntohs(ip_hdr(skb)->tot_len);
		len = skb_ip_totlen(skb);
		break;
	case htons(ETH_P_IPV6):
		len = sizeof(struct ipv6hdr)