Re: [PATCH net-next v4 3/4] net: ipv6: seg6_iptunnel: mitigate 2-realloc issue
From: Paolo Abeni
Date: Tue Nov 19 2024 - 08:27:00 EST
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