Skip to content
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: Bridge Configuration Client/Server API #75175

Conversation

Balaklaka
Copy link
Collaborator

@Balaklaka Balaklaka commented Jun 28, 2024

Adding documentation and function calles for the API's in Bridge Configuration Client model and Bridge Configuration Server model.

/** Bridging Table state entry corresponding to a entry in the Bridging Table. */
struct bridging_table_entry {
/** Allowed directions for the bridged traffic (or bridged traffic not allowed) */
uint8_t directions;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this will be used at many places, it could be optimized for memory footprint as:

        uint32_t direction:8;
        uint32_t netidx1:12;
        uint32_t netidx2:12;
        uint16_t addr1;
        uint16_t addr2;

This might also help with mapping octets in the message to this struct.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added __packed to the struct.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary.

include/zephyr/bluetooth/mesh/brg_cfg.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Outdated Show resolved Hide resolved
@hermabe hermabe removed their request for review July 1, 2024 10:29
@Balaklaka Balaklaka force-pushed the develop/bridge_cfg_client branch 3 times, most recently from ca921ab to 6298a7a Compare July 1, 2024 15:00
@Balaklaka Balaklaka changed the title Bluetooth: Mesh: Bridge Configuration Client API Bluetooth: Mesh: Bridge Configuration Client/Server API Jul 1, 2024
@Balaklaka Balaklaka force-pushed the develop/bridge_cfg_client branch 2 times, most recently from 3796732 to 898cc75 Compare July 2, 2024 07:55
include/zephyr/bluetooth/mesh.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/access.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/access.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg.h Outdated Show resolved Hide resolved
subsys/bluetooth/mesh/Kconfig Show resolved Hide resolved
subsys/bluetooth/mesh/Kconfig Show resolved Hide resolved
subsys/bluetooth/mesh/Kconfig Show resolved Hide resolved
subsys/bluetooth/mesh/Kconfig Outdated Show resolved Hide resolved
subsys/bluetooth/mesh/brg_cfg_srv.c Outdated Show resolved Hide resolved
@Balaklaka Balaklaka force-pushed the develop/bridge_cfg_client branch 2 times, most recently from 85b4105 to 862a73c Compare July 2, 2024 13:56
@Balaklaka Balaklaka requested a review from alxelax July 2, 2024 14:01
@Balaklaka Balaklaka requested a review from omkar3141 July 2, 2024 14:01
Copy link
Collaborator

@alxelax alxelax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better, but still requires some changes. Also, please solve CI comments.

include/zephyr/bluetooth/mesh.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_cli.h Show resolved Hide resolved
include/zephyr/bluetooth/mesh/brg_cfg_srv.h Outdated Show resolved Hide resolved
Adding documentation and function calles for the API's
in Bridge Configuration Client model and Bridge
Configuration Server model.

Signed-off-by: Ingar Kulbrandstad <[email protected]>
alxelax
alxelax previously approved these changes Jul 3, 2024
/** Bridging Table state entry corresponding to a entry in the Bridging Table. */
struct bridging_table_entry {
/** Allowed directions for the bridged traffic (or bridged traffic not allowed) */
uint8_t directions;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary.

@carlescufi carlescufi merged commit 470c0d1 into zephyrproject-rtos:collab-mesh-subnet Jul 4, 2024
25 checks passed
@Balaklaka Balaklaka deleted the develop/bridge_cfg_client branch July 4, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants