Skip to content

[core] Add support for vsock transport#33309

Merged
drfloob merged 6 commits intogrpc:masterfrom
YadongQi:vsock_revert
Jun 7, 2023
Merged

[core] Add support for vsock transport#33309
drfloob merged 6 commits intogrpc:masterfrom
YadongQi:vsock_revert

Conversation

@YadongQi
Copy link
Copy Markdown
Contributor

@YadongQi YadongQi commented Jun 1, 2023

Revert "Revert "[core] Add support for vsock transport" (#33276)"
This reverts commit c5ade30.

And fix the issue which broke the python build.

@markdroth @drfloob please review this PR. Thank you very much.

YadongQi added 2 commits June 1, 2023 14:55
AF_VSOCK is introduced in sys/socket.h since glibc-v2.18 and musl-libc-v0.9.12.
So add AF_VSOCK check to guard GRPC_HAVE_VSOCK.
@YadongQi YadongQi requested a review from markdroth as a code owner June 1, 2023 07:01
@markdroth markdroth assigned drfloob and unassigned veblush Jun 1, 2023
@drfloob
Copy link
Copy Markdown
Member

drfloob commented Jun 5, 2023

I took the liberty of pushing a formatting fix to your branch (please pull again before you attempt to push another commit, if necessary).

@drfloob drfloob added release notes: no Indicates if PR should not be in release notes kokoro:force-run labels Jun 5, 2023
@YadongQi
Copy link
Copy Markdown
Contributor Author

YadongQi commented Jun 6, 2023

@drfloob the preprocessor is reporting error

      ./src/core/lib/iomgr/port.h:65:41: error: missing binary operator before token "("
         65 |     LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) && \

preprocessor will interpret KERNEL_VERSION as 0 by default when it is not defined . It will not be ignored when combined in one line with #if defined(LINUX_VERSION_CODE).

I submitted new commit to fix this, please review it.

Copy link
Copy Markdown
Member

@drfloob drfloob left a comment

Choose a reason for hiding this comment

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

This looks good to me. There is an unrelated breakage in the python distribution tests, I've pinged the team about it. @gnossen @XuanWang-Amos: I believe we've solved the issue in this PR that broke the python distribution tests last time we merged. Should we merge this PR, or wait for the CI job to get fixed?

@drfloob
Copy link
Copy Markdown
Member

drfloob commented Jun 7, 2023

Update: @XuanWang-Amos is working on the python distribution test breakage, we can wait another day or so to be safe, or risk another rollback-fix-reland cycle if we merge before then.

@drfloob
Copy link
Copy Markdown
Member

drfloob commented Jun 7, 2023

The Python distribtests fix was merged, and the test is passing on this PR. Merging. Thanks for the great work, @YadongQi.

@drfloob drfloob merged commit 18c42a2 into grpc:master Jun 7, 2023
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Jun 7, 2023
jul-sh pushed a commit to jul-sh/tonic that referenced this pull request Jun 10, 2023
gRPC recently merged support for Virtio VSOCK as transport. It would be helpful for us if tonic were to match gRPC's support for it.

gRPC PR that adds VSOCK support: grpc/grpc#33309
jul-sh pushed a commit to jul-sh/tonic that referenced this pull request Jun 10, 2023
gRPC recently merged support for Virtio VSOCK as transport. It would be helpful for us if tonic were to match gRPC's support for it.

gRPC PR that adds VSOCK support: grpc/grpc#33309
mario-vimal pushed a commit to mario-vimal/grpc that referenced this pull request Jun 15, 2023
Revert "Revert "[core] Add support for vsock transport"
(grpc#33276)"
This reverts commit
grpc@c5ade30.

And fix the issue which broke the python build.

@markdroth @drfloob please review this PR. Thank you very much.

---------

Co-authored-by: AJ Heller <hork@google.com>
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.grpc-grpc that referenced this pull request Oct 18, 2023
Local modifications:
- Forward port the VSOCK patch based on upstream:
  grpc/grpc#33309
- Forward port the addition of an empty constructor to
  FilterChainData to work around a compiler issue.

Bug: 279548314
Test: presubmit, cuttlefish_wmediumd_control_test
https://android-build.corp.google.com/abtd/run/L20300000963548848/

Change-Id: I6a033f1ea32881a6cbe3958e3ec7efb9b60103ef
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.grpc-grpc that referenced this pull request Oct 31, 2023
Local modifications:
- Update VSOCK patch based on grpc/grpc#33309

Bug: 279548314
Test: presubmit, cuttlefish_wmediumd_control_test
https://android-build.corp.google.com/builds/abtd/run/L06600000963778207

Change-Id: Ie8f4a93029902e9ead40cb7f2ec6293b2028c78a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bloat/low imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants