Skip to content

Commit 03ff0cb

Browse files
edumazetkuba-moo
authored andcommitted
ipv6: add daddr/final storage in struct ipv6_pinfo
After commit b409a7f ("ipv6: colocate inet6_cork in inet_cork_full") we have room in ipv6_pinfo to hold daddr/final in case they need to be populated in fl6_update_dst() calls. This will allow stack canary removal in IPv6 tx fast paths. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260206173426.1638518-2-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 792aaea commit 03ff0cb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/linux/ipv6.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ struct ipv6_fl_socklist;
230230
struct ipv6_pinfo {
231231
/* Used in tx path (inet6_csk_route_socket(), ip6_xmit()) */
232232
struct in6_addr saddr;
233+
union {
234+
struct in6_addr daddr;
235+
struct in6_addr final;
236+
};
233237
__be32 flow_label;
234238
u32 dst_cookie;
235239
struct ipv6_txoptions __rcu *opt;

0 commit comments

Comments
 (0)