Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discussion: RAWETH_ADDITION & HW_CRC_ADDITION #298

Open
changchengx opened this issue Nov 21, 2024 · 2 comments
Open

discussion: RAWETH_ADDITION & HW_CRC_ADDITION #298

changchengx opened this issue Nov 21, 2024 · 2 comments

Comments

@changchengx
Copy link
Contributor

changchengx commented Nov 21, 2024

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
Copy link
Contributor Author

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

@changchengx
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant