[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2f3ccc2c-6cb1-46c5-a462-9489e1c4471b@redhat.com>
Date: Tue, 19 Nov 2024 14:26:44 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Justin Iurman <justin.iurman@...ege.be>, netdev@...r.kernel.org
Cc: davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com,
kuba@...nel.org, horms@...nel.org, linux-kernel@...r.kernel.org,
David Lebrun <dlebrun@...gle.com>
Subject: Re: [PATCH net-next v4 3/4] net: ipv6: seg6_iptunnel: mitigate
2-realloc issue
On 11/19/24 14:07, Justin Iurman wrote:
> On 11/19/24 11:47, Paolo Abeni wrote:
>> Also the code would probably be more readable with:
>>
>> struct dst_entry *old_dst = skb_dst(skb);
>>
>> and using 'old_dst' instead of 'skb_dst(skb)'
>
> Ack. How about "dst" instead of "old_dst" (since it's the current
> dst_entry), and "cache_dst" instead of "dst"?
Fine by me. I guess such option should also give a smaller diff, which
would be a nice plus.
Thanks!
Paolo
Powered by blists - more mailing lists