You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mctp: implement asynchronous polling for bridge downstream EIDs
Add asynchronous polling mechanism for MCTP bridge downstream endpoints
to discover them. The polling continues throughout the bridge's existence
under the MCTP network and creates peer structures only when endpoints respond
to poll successfully.
- Update bus-owner config with polling related factors such as
ep_removal_threshold, poll_timeout
- Add bridge_eid_poll_context and bridge_endpoint_discovery structures
- Implement setup_async_downstream_ep_poll() for polling initialization
- Add send_bridge_poll_request() for periodic GET_ENDPOINT_ID messages
- Add handle_bridge_poll_response() for response processing
- Add handle_poll_timeout() with ep_removal_threshold failure handling
- Add cleanup_bridge_polling() and cleanup_bridge_downstream_peers()
The polling uses an asynchronous sender-response model where mctpd
continuously polls downstream EIDs and creates peer structures upon
successful responses. Failed endpoints are removed after reaching
the failure threshold (ep_removal_threshold). Polling stops and all resources
are cleaned up when bridges are removed.
Signed-off-by: Faizan Ali <[email protected]>
0 commit comments