HccnRpingInitAttr

Description

Defines the parameters to be configured during RPing function initialization.

Prototype

typedef struct HccnRpingInitAttrDef {
    HccnRpingMode mode;  /* Network type, HccnRpingMode type */
    uint32_t port;       /* Socket listening port used by the target NPU */
    uint32_t npuNum;     /* Total number of NPUs that participate in the RPing function. The value range is (0, 32768]. */
    uint32_t bufferSize; /* Device memory size used by the current NPU in Client mode, in bytes. bufferSize must be 4 KB aligned and must be greater than Number of packets sent to each target × 2048 × Number of target NPUs. */
    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. Set it to the DSCP value of RoCE packets multiplied by 4 (as the DSCP field in the IP packet header has its six most significant bits with bits 0 and 1 fixed at zero in the DS domain). The default value is 132, corresponding to DSCP 33 (132 = 33 × 4). */
    union{
    char *ipAddr;          /* IP address of the current NPU. Both IPv4 and IPv6 addresses are supported. Mandatory for Atlas A2 training product/Atlas A2 inference product and Atlas A3 training product/Atlas A3 inference product. */
    char *eid;             /* EID of the current NPU. Mandatory for Atlas 350 Accelerator Card. */
    };
} HccnRpingInitAttr;