perftest icon indicating copy to clipboard operation
perftest copied to clipboard

discussion: RAWETH_ADDITION & HW_CRC_ADDITION

Open changchengx opened this issue 1 year ago • 2 comments

The RAWETH_ADDITION is defined as 18 and HW_CRC_ADDITION is defined as 4

#define RAWETH_ADDITION    (18)
#define HW_CRC_ADDITION    (4)

Initially, the frame length is set to be ctx->size - RAWETH_ADDITION Question

  • Why RAWETH_ADDITION is set to be 18 instead of 14?
  • Why the sge.length is set to be user_param->size - HW_CRC_ADDITION?
  • How to get the result of FCS if there's reserved space(HW_CRC_ADDITION) for FCS?

changchengx avatar Nov 21 '24 06:11 changchengx

@HassanKhadour @sshaulnv Could you help check the above question when you have time?

changchengx avatar Nov 21 '24 07:11 changchengx

From my perspective, RAWETH_ADDITION could be set to be 14. sge.length could be set to be user_param->size

changchengx avatar Nov 21 '24 07:11 changchengx