-
Notifications
You must be signed in to change notification settings - Fork 73
Do not reverse bytes for NullVM. #282
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
Conversation
@PiotrSikora @mathetake can you please review? This is a follow-up change for #198. Thanks. |
Fixes WASM on s390x https://issues.redhat.com/browse/MAISTRA-2648 The permanent fixes are: proxy-wasm/proxy-wasm-cpp-host#198 proxy-wasm/proxy-wasm-cpp-host#282 Signed-off-by: Konstantin Maksimov konstantin.maksimov@ibm.com
Fixes WASM on s390x https://issues.redhat.com/browse/MAISTRA-2648 The permanent fixes are: proxy-wasm/proxy-wasm-cpp-host#198 proxy-wasm/proxy-wasm-cpp-host#282
Fixes WASM on s390x https://issues.redhat.com/browse/MAISTRA-2648 Corresponding proxy-wasm/proxy-wasm-cpp-host PRs: proxy-wasm/proxy-wasm-cpp-host#198 proxy-wasm/proxy-wasm-cpp-host#282
Fixes WASM on s390x https://issues.redhat.com/browse/MAISTRA-2648 Corresponding proxy-wasm/proxy-wasm-cpp-host PRs: proxy-wasm/proxy-wasm-cpp-host#198 proxy-wasm/proxy-wasm-cpp-host#282
@PiotrSikora @mathetake would you please review this? Initial big-endian changes have already been merged in #198, but now I'd like to fix null-vm use case. Thanks. |
could you elaborate on what's the error in the test, and how does this solve it? |
@mathetake thanks for the review. I've opened an issue and added the error details #294. Can you please take a look? |
Could you add a test that fails without this change? We cannot rely on tests 3 repositories downstream. |
Fixes WASM on s390x https://issues.redhat.com/browse/MAISTRA-2648 Corresponding proxy-wasm/proxy-wasm-cpp-host PRs: proxy-wasm#198 proxy-wasm#282
Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
@PiotrSikora thanks for the review, I've made the proposed changes, can you please take a look? |
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.
cc @mpwarres PTAL
additional changes: - moved the call to isWasmByteOrder() into htowasm/wasmtoh macros - added surrounding brackets to htowasm/wasmtoh - removed debug leftover Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
a32a30c
to
6e273eb
Compare
@PiotrSikora I've made the requested changes:
|
more changes: - renamed is_wasm_byte_order to vm_uses_wasm_byte_order - renamed isWasmByteOrder() to usesWasmByteOrder() Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
@mpwarres thanks for the review, please see my comments. |
@PiotrSikora and/or @mathetake , I've finished my pass--this now awaits your approval. |
Fixes https://issues.redhat.com/browse/OSSM-1815 error in maistra-2.3 proxy-wasm fix: proxy-wasm/proxy-wasm-cpp-host#282 maistra-2.3 issue: https://issues.redhat.com/browse/OSSM-1956 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
- use buf and buf_len variables for readability - added back word.h include - hardcoded usesWasmByteOrder() to true Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
@PiotrSikora I've made the changes, can you please take a look? |
- moved pairs test into a new file test/pairs_util_test.cc - run pairs test on all platforms - made contextOrEffectiveContext() null check a bit more readable Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
65c8c8f
to
d0a3249
Compare
Fixes https://issues.redhat.com/browse/OSSM-1815 error in maistra-2.3 proxy-wasm fix: proxy-wasm/proxy-wasm-cpp-host#282 maistra-2.3 issue: https://issues.redhat.com/browse/OSSM-1956 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com> Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
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.
LGTM, thanks! Please remove that unnecessary #include
and this should be good to go.
more changes: - removed unnecessary #include from test/null_vm_test.cc Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
Thanks! |
Upstream PR proxy-wasm/proxy-wasm-cpp-host#282 has been merged and maistra-2.4 branch includes these changes Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
Upstream PR proxy-wasm/proxy-wasm-cpp-host#282 has been merged and maistra-2.4 branch includes these changes Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
This fixes the following istio proxy test on s390x:
https://github.com/istio/proxy/blob/master/test/envoye2e/tcp_metadata_exchange/tcp_metadata_exchange_test.go
Resolves #294