Commit 7ac6ea4
ipv6: fix omitted netlink attributes when using RTEXT_FILTER_SKIP_STATS
Using RTEXT_FILTER_SKIP_STATS is incorrectly skipping non-stats IPv6
netlink attributes on link dump. This causes issues on userspace tools,
e.g iproute2 is not rendering address generation mode as it should due
to missing netlink attribute.
Move the filling of IFLA_INET6_STATS and IFLA_INET6_ICMP6STATS to a
helper function guarded by a flag check to avoid hitting the same
situation in the future.
Fixes: d5566fd ("rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250402121751.3108-1-ffmancera@riseup.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent e4546c6 commit 7ac6ea4
1 file changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5784 | 5784 | | |
5785 | 5785 | | |
5786 | 5786 | | |
| 5787 | + | |
| 5788 | + | |
| 5789 | + | |
| 5790 | + | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
| 5795 | + | |
| 5796 | + | |
| 5797 | + | |
| 5798 | + | |
| 5799 | + | |
| 5800 | + | |
| 5801 | + | |
| 5802 | + | |
| 5803 | + | |
| 5804 | + | |
| 5805 | + | |
| 5806 | + | |
| 5807 | + | |
5787 | 5808 | | |
5788 | 5809 | | |
5789 | 5810 | | |
| |||
5806 | 5827 | | |
5807 | 5828 | | |
5808 | 5829 | | |
5809 | | - | |
5810 | | - | |
5811 | | - | |
5812 | | - | |
5813 | | - | |
5814 | | - | |
5815 | | - | |
5816 | | - | |
5817 | | - | |
5818 | | - | |
5819 | | - | |
5820 | | - | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
5821 | 5834 | | |
5822 | 5835 | | |
5823 | 5836 | | |
| |||
0 commit comments