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

Dl issue 182 #573

Closed
wants to merge 71 commits into from
Closed

Dl issue 182 #573

wants to merge 71 commits into from

Conversation

dmleontiev9000
Copy link

Tempesta parser was cut from main source tree and supporting code was refactored for testing in standalone environment. Tempesta parser was patched with AVX insertions in performance critical places, but otherwise remains intact and can be transferred back to it's original position.

return ids[n];}

#define AVX_STRID_2(n) do {\
static const int ids[9] = {\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above. Need to use ids[10] or ids[] as there are 10 elements in array.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in latest commit

@krizhanovsky
Copy link
Contributor

The code doesn't comply our coding style, please adjust the style.

@krizhanovsky
Copy link
Contributor

What's going on in tempesta_fw/t/unit/dl-182? It seems there should be test/benchmark for HTTP parser, but why do you copy skb stuff there? Please look at other unit tests.

}

fseek(source, 0, SEEK_END);
size_t len = ftell(source);
Copy link
Contributor

@krizhanovsky krizhanovsky Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually fstat(2) is used to get file size. Moreover, since you set file pointer using fseek() following fread() doesn't read any data and your test doesn't test anything.

@krizhanovsky
Copy link
Contributor

Poorly done

@krizhanovsky krizhanovsky deleted the dl-issue-182 branch October 17, 2016 20:23
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

Successfully merging this pull request may close these issues.

3 participants