diff options
author | Peter Delevoryas <pdel@fb.com> | 2022-05-16 15:49:48 -0700 |
---|---|---|
committer | Peter Delevoryas <pdel@fb.com> | 2022-05-18 21:20:02 -0700 |
commit | ca73d965d73a930ab366a61e96e1af181ff45594 (patch) | |
tree | 020234a1743c05524918ac7ec91cfd3171aba0e3 /src/ncsi-pkt.h | |
parent | 177ff459970a18fc4aa70b3c6a5add5248f5a0c1 (diff) | |
download | slirp-ca73d965d73a930ab366a61e96e1af181ff45594.zip slirp-ca73d965d73a930ab366a61e96e1af181ff45594.tar.gz slirp-ca73d965d73a930ab366a61e96e1af181ff45594.tar.bz2 |
ncsi: Add Mellanox Get Mac Address handler
Attempted to mirror the upstream Linux driver[1] as closely as reasonably
possible.
[1] https://github.com/torvalds/linux/blob/42226c989789d8da4af1de0c31070c96726d990c/net/ncsi/ncsi-rsp.c#L614-L638
Signed-off-by: Peter Delevoryas <pdel@fb.com>
Diffstat (limited to 'src/ncsi-pkt.h')
-rw-r--r-- | src/ncsi-pkt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ncsi-pkt.h b/src/ncsi-pkt.h index 606684f..9dd167c 100644 --- a/src/ncsi-pkt.h +++ b/src/ncsi-pkt.h @@ -487,4 +487,9 @@ struct ncsi_aen_hncdsc_pkt { #define MLX_MAC_ADDR_OFFSET 8 #define INTEL_MAC_ADDR_OFFSET 1 +/* Status offset in OEM response */ +#define MLX_GMA_STATUS_OFFSET 0 +/* OEM Response payload length */ +#define MLX_GMA_PAYLOAD_LEN 24 + #endif /* NCSI_PKT_H */ |