ipvlan: use skb_ip_totlen in ipvlan_get_L3_hdr
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Jan 2023 15:58:36 +0000 (10:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 04:54:27 +0000 (20:54 -0800)
commit50e6fb5c6efb2b33b15ea490dfe355cb312f6eb5
treef7a89acabdbc7d19a6b01d0cd67ae2c272985f37
parent7eb072be41ba4d8ecea17092dece50c7375d8980
ipvlan: use skb_ip_totlen in ipvlan_get_L3_hdr

ipvlan devices calls netif_inherit_tso_max() to get the tso_max_size/segs
from the lower device, so when lower device supports BIG TCP, the ipvlan
devices support it too. We also should consider its iph tot_len accessing.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipvlan/ipvlan_core.c