Skip to content

Conversation

@KanjiMonster
Copy link
Contributor

Without rtnl_link_info_ops::io_compare() changes in link info are not picked up by the cache and no notificatons are sent out as rtnl_link_info_data_compare() returns 0 when the callback is missing.

Fix this by implementing the missing io_compare() for bridge_info.

This allows e.g. changes in ageing time to be seen.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")

@KanjiMonster
Copy link
Contributor Author

I'm not 100% confident about the b_boolopts comparison. It has a valmask and valopts attributes, but for now I opted to only compare the valopts. I assume the kernel will always notify about all of them, so the valmask will be essentially static during runtime.

@KanjiMonster KanjiMonster force-pushed the jogo_fix_bridge_info_compare branch 2 times, most recently from 55d39f1 to 615a8c8 Compare June 6, 2025 11:00
@KanjiMonster
Copy link
Contributor Author

Updated to follow the way how https://github.com/thom311/libnl/blob/main/lib/route/addr.c#L565-L569 handles the LOOSE_COMPARISON.

@KanjiMonster KanjiMonster force-pushed the jogo_fix_bridge_info_compare branch from 615a8c8 to dba3764 Compare August 7, 2025 08:01
Without rtnl_link_info_ops::io_compare() changes in link info are not
picked up by the cache and no notificatons are sent out as
rtnl_link_info_data_compare() returns 0 when the callback is missing.

Fix this by implementing the missing io_compare() for bridge_info.

This allows e.g. changes in ageing time to be seen.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")
Signed-off-by: Jonas Gorski <[email protected]>
@KanjiMonster KanjiMonster force-pushed the jogo_fix_bridge_info_compare branch from dba3764 to b343aaa Compare August 12, 2025 11:03
thom311 pushed a commit that referenced this pull request Aug 13, 2025
Without rtnl_link_info_ops::io_compare() changes in link info are not
picked up by the cache and no notificatons are sent out as
rtnl_link_info_data_compare() returns 0 when the callback is missing.

Fix this by implementing the missing io_compare() for bridge_info.

This allows e.g. changes in ageing time to be seen.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")
Signed-off-by: Jonas Gorski <[email protected]>

#427
@thom311
Copy link
Owner

thom311 commented Aug 13, 2025

merged as 320b2bd

thank you!!

@thom311 thom311 closed this Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants