在 2026/9/12 08:54, Eric Dumazet 写道:
ipip6_fill_info() returns -ENODEV if tunnel->sit_parms is NULL.
This can not happen yet: sit_parms is only cleared from
ipip6_dev_free(), the priv_destructor, which runs long after
RTM_DELLINK has been built.
Returning an error from a fill_info() handler is still a trap,
because rtnl_dump_ifinfo() stops at the first failure and propagates
it, letting one device hide all the remaining ones.
Return 0 instead, there is nothing to report for a device that is
going away.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Xuanqiang Luo <redacted>
Thanks,
Xuanqiang