lkml.org 
[lkml]   [2022]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: [PATCH v3 net] geneve: fix TOS inheriting for ipv4
From
On 8/2/22 6:20 AM, Matthias May wrote:
> @@ -822,6 +823,7 @@ static struct rtable *geneve_get_v4_rt(struct sk_buff *skb,
> use_cache = false;
> }
> fl4->flowi4_tos = RT_TOS(tos);

Could make this optional with
if (full_tos)
> + *full_tos = tos;
>
> dst_cache = (struct dst_cache *)&info->dst_cache;
> if (use_cache) {

...

> @@ -1137,6 +1140,7 @@ static int geneve_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb)
> {
> struct ip_tunnel_info *info = skb_tunnel_info(skb);
> struct geneve_dev *geneve = netdev_priv(dev);
> + __u8 full_tos;
> __be16 sport;
>
> if (ip_tunnel_info_af(info) == AF_INET) {
> @@ -1148,7 +1152,8 @@ static int geneve_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb)
> 1, USHRT_MAX, true);
>
> rt = geneve_get_v4_rt(skb, dev, gs4, &fl4, info,
> - geneve->cfg.info.key.tp_dst, sport);
> + geneve->cfg.info.key.tp_dst, sport,
> + &full_tos);
> if (IS_ERR(rt))
> return PTR_ERR(rt);
>

since this one is not used

\
 
 \ /
  Last update: 2022-08-03 17:37    [W:0.098 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site