HccnRpingTargetInfo
Description
Defines the ping target.
Prototype
typedef struct HccnRpingTargetInfoDef {
uint32_t srcPort; /* TCP/UDP port number */
union {
uint32_t reserved;
uint32_t addrType; /* 0: IP; 1: EID. Set this parameter to 0 for Atlas A2 training product /Atlas A2 inference product and Atlas A3 training product /Atlas A3 inference product ; set it to 1 for Atlas 350 Accelerator Card. */
};
uint32_t sl; /* Service level of the RDMA NIC. The value must be the same as the PFC priority set for the NIC. The value is an integer ranging from 0 to 7. */
uint32_t tc; /* Traffic class of the RDMA NIC. It is configured as the DSCP value of RoCE packets multiplied by 4 (because the six most significant bits of the DS field in the IP packet header contain the DSCP value, with bits 0 and 1 fixed to zero). The default value is 132, corresponding to a DSCP value of 33 (132 = 33 × 4). */
uint32_t port; /* Listening port, which must be the same as the listening port configured during target initialization, that is, the value of port in HccnRpingInitAttr. */
uint32_t payloadLen; /* Payload length */
char payload[HCCN_RPING_PAYLOAD_LEN_MAX]; /* Custom payload */
union {
char* srcIp; /* IP of the local NPU, that is, the IP of the client NPU */
char* srcEid; /* EID of the local NPU, that is, the EID of the client NPU */
};
union {
char* dstIp; /* IP of the remote NPU, that is, the IP of the target NPU */
char* dstEid; /* EID of the remote NPU, that is, the EID of the target NPU */
};
} HccnRpingTargetInfo;
Parent topic: Data Type