Skip to content

dynamic_modules: make sure rust's new_http_filter entrypoint matches the c abi#40864

Merged
mathetake merged 2 commits intoenvoyproxy:mainfrom
wtzhang23:bugfix-rust-new-http-filter
Aug 27, 2025
Merged

dynamic_modules: make sure rust's new_http_filter entrypoint matches the c abi#40864
mathetake merged 2 commits intoenvoyproxy:mainfrom
wtzhang23:bugfix-rust-new-http-filter

Conversation

@wtzhang23
Copy link
Copy Markdown
Contributor

Commit Message: dynamic_modules: make sure rust's new_http_filter entrypoint matches the c abi
Additional Description: Currently, for the second argument filter_envoy_ptr of the envoy_dynamic_module_on_http_filter_new entrypoint, the Rust new_http_filter function expects to take a pointer to DynamicModuleHttpFilterConfig but should take in DynamicModuleHttpFilter as declared in the C abi.
Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: William Zhang <wtzhang23@gmail.com>
Signed-off-by: William Zhang <wtzhang23@gmail.com>
@mathetake
Copy link
Copy Markdown
Member

Oh wow this is absolutely making sense... good catch..

@mathetake mathetake self-assigned this Aug 27, 2025
Copy link
Copy Markdown
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

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

Thank you so much, this is absolutely LGTM. Good catch.

/retest

@mathetake
Copy link
Copy Markdown
Member

/retest

@mathetake mathetake enabled auto-merge (squash) August 27, 2025 03:21
@mathetake mathetake merged commit 37521e1 into envoyproxy:main Aug 27, 2025
24 checks passed
wtzhang23 added a commit to wtzhang23/envoy that referenced this pull request Aug 27, 2025
…the c abi (envoyproxy#40864)

Commit Message: dynamic_modules: make sure rust's new_http_filter
entrypoint matches the c abi
Additional Description: Currently, for the second argument
`filter_envoy_ptr` of the `envoy_dynamic_module_on_http_filter_new`
entrypoint, the Rust `new_http_filter` function expects to take a
pointer to `DynamicModuleHttpFilterConfig` but should take in
`DynamicModuleHttpFilter` as declared in the [C
abi](https://github.com/envoyproxy/envoy/blob/55f965713e99769c729f87680c7349fd2307f6b7/source/extensions/dynamic_modules/abi.h#L571-L573).
Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: William Zhang <wtzhang23@gmail.com>
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.

2 participants