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
feat(ibverbs): add GlobalRoutingHeader wrapper for parsing GRH from buffers
Add a smoltcp-style `GlobalRoutingHeader<T>` wrapper that provides
zero-copy read/write access to Global Routing Header fields directly
from byte buffers.
- `new_unchecked` / `new_checked` constructors for buffer wrapping
- Field accessors: version, traffic_class, flow_label, payload_length,
next_header, hop_limit, source_gid, destination_gid
- Mutable setters for all fields when buffer is writable
- `as_ptr` / `as_mut_ptr` for FFI interop
- `grh` for copying to owned `ibv_grh` struct
Also add `--debug-grh` flag to ud_pingpong_split example to print
received GRH on each iteration for debugging purposes.
Signed-off-by: Luke Yue <lukedyue@gmail.com>
0 commit comments