-
Notifications
You must be signed in to change notification settings - Fork 111
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
OS-4525 lxbrand implement getsockopt(TCP_INFO) #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I wasn't clear... you don't just need a new macro, you need a new TABLE as well. I showed the entirety of what I had in mind.
I'll also note there's no illumos version of Linux's NEW_SYN_RECV either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits left, and one thing that's probably my fault with merge hell. This is looking much better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more nit: Please remove the ':' from your summary. It should read:
"OS-4525 lxbrand implement getsockopt(TCP_INFO)"
This should allow our Jira to synch up with this PR.
Oh damn, one last thing... please update your copyrights to 2024. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some more nits. Pity LX doesn't have stricter compilation flags; some of this might've been caught. If this was caused by me pressing "update branch", I apologize.
Done |
Copyrights updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're going to need to put comments on every field from our tcp_t you assign to lx_tcp_info_t in the actual function. I'm seeing enough here to make me scratch my head.
I'll add comments on how I arrived to map those fields and remove the ones that don't have the same meaning as the ones expected by Linux conventions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the cstyle nits and you're good to go. git pbchk
is your friend as long as /opt/onbld or some version of it in your illumos build is available.
Please make sure you re-run your tests and update any result changes here. Between that and maybe one other reviewer I'll mark IA and pull this in. Thank you for your efforts, time, and patience here. |
Here are the tests I have done after the latest changes : Linux Branded Zonetest_connect[SUCCESS] TCP state: LX_TCP_ESTABLISHED Linux Native VMtest_connect[SUCCESS] TCP state: LX_TCP_ESTABLISHED There are still differences for example in tcpi_unacked we return a negative value, Linux returns 0. |
Hi,
As discussed in the mailing list, this patch adds the TCP_INFO getsockopt to the LX brand.
Tests where done in using LX image: 0bf06d4d-b62f-4b3b-b560-3cd258df2070.
Applications tested where nginx , iperf and a simple C program exercising this TCP option.
I used as reference the notes in https://smartos.org/bugview/OS-4525
Bests