-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Bluetooth: Mesh: Filter duplicates in brg subnets list #97766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: Mesh: Filter duplicates in brg subnets list #97766
Conversation
9e2fa29 to
edda1ac
Compare
Quick explanation hereI considered several solutions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, it looks Ok to me apart test scenario. Could you elaborate, how do you check start index? I would like to see that filtering exactly works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd add few more entries into subnet_pairs to check filtering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. Up to you if you want to fix the minor comments.
This commit adds functionality to filter out duplicate entries in the Bridged Subnets List message. This is done by iterating through the part of the table we have already processed, to check if this is the first time we see a given key pair or not. Signed-off-by: Ludvig Jordet <[email protected]>
This adds a babblesim test that checks * That duplicate net key index pairs are filtered out in the bridged subnets list. * That indexing into the filtered list works as expected (indexing happens into the already filtered list, not the full bridging table) Signed-off-by: Ludvig Jordet <[email protected]>
edda1ac to
64a8727
Compare
|
Updated with Pavels requested style changes |
|



Adds functionality to filter out duplicate entries in the
Bridged Subnets List message.
This is done by iterating through the part of the table we have already
processed, to check if this is the first time we see a given key pair or
not.
Also, adds a babblesim test that checks
subnets list.
happens into the already filtered list, not the full bridging table)