Skip to content

mctpd: allow bridge for assign static endpoint#148

Open
potinlai wants to merge 1 commit intoCodeConstruct:mainfrom
potinlai:main
Open

mctpd: allow bridge for assign static endpoint#148
potinlai wants to merge 1 commit intoCodeConstruct:mainfrom
potinlai:main

Conversation

@potinlai
Copy link

@potinlai potinlai commented Mar 19, 2026

Allow birdge when assigning static enpoint.

root@bmc:~# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/interfaces/mcu1u2u1u4u1 au.com.codeconstruct.MCTP.BusOwner1 AssignEndpointStatic ayy 0 30
yisb 30 1 "/au/com/codeconstruct/mctp1/networks/1/endpoints/30" true

root@bmc:~# busctl introspect au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/30 au.com.codeconstruct.MCTP.Bridge1
NAME                              TYPE      SIGNATURE RESULT/VALUE FLAGS
.PoolEnd                          property  y         35           const
.PoolStart                        property  y         31           const

Signed-off-by: Potin Lai potin.lai@quantatw.com

Allow birdge when assigning static enpoint.

```
root@bmc:~# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/interfaces/mcu1u2u1u4u1 au.com.codeconstruct.MCTP.BusOwner1 AssignEndpointStatic ayy 0 30
yisb 30 1 "/au/com/codeconstruct/mctp1/networks/1/endpoints/30" true

root@bmc:~# busctl introspect au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1/endpoints/30 au.com.codeconstruct.MCTP.Bridge1
NAME                              TYPE      SIGNATURE RESULT/VALUE FLAGS
.PoolEnd                          property  y         35           const
.PoolStart                        property  y         31           const
```

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
@jk-ozlabs
Copy link
Member

I'm going to need more context than that commit message. What is the aim here?

Comment on lines +2305 to +2309
if (static_eid) {
new_eid = static_eid;
} else {
new_eid = alloc.start;
}
Copy link
Member

Choose a reason for hiding this comment

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

You can't just redefine the allocated range like this, those EIDs at [static_eid, static_eid + alloc.extent] may not be available.

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