rework dependency removal (v2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | src: pass family to payload_dependency_kill()include/ src/ src/ +1 more | +24 | 0 replies | |
| 2/6 | payload: add payload_dependency_release() helper functionsrc/ | +13 | 0 replies | |
| 3/6 | src: add payload_dependency_exists()include/ src/ src/ | +36 | 0 replies | |
| 4/6 | src: get rid of __payload_dependency_kill()include/ src/ src/ | +9 | 0 replies | |
| 5/6 | payload: add payload_may_dependency_kill()src/ | +29 | 0 replies | |
| 6/6 | netlink_delinearize: add meta_may_dependency_kill()src/ | +71 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nft 0/6] rework dependency removal (v2)
Hi,
This patchset aims to address what Florian reported time ago [1]. This is skipping removal of protocol key payload expressions at network base for the netdev, bridge and inet.
It would better to annotate all redundant expressions and add a later stage, where we can do smarter simplifications by looking globally at what we have, instead of just looking at current protocol key expression and last one that we have annotated in the context structure to perform removals. But I would prefer to have a fix now upstream then look at this larger rework later on since it would require to review a bit of the postprocess code.
The initial 4 patches in this batch are just cleanup/preparation patches for patches 5/6 and 6/6.
There is still a few warning in the tests/py/ infrastructure, some of them I think need to be fixed, and at least one can remain there to remind us that we can do better.
Let me know if you have any concern with this.
Thanks.
[1] https://www.spinics.net/lists/netfilter-devel/msg50078.html
Pablo Neira Ayuso (6):
src: pass family to payload_dependency_kill()
payload: add payload_dependency_release() helper function
src: add payload_dependency_exists()
src: get rid of __payload_dependency_kill()
payload: add payload_may_dependency_kill()
netlink_delinearize: add meta_may_dependency_kill()
include/payload.h | 7 +-- src/netlink.c | 2 +- src/netlink_delinearize.c | 106 +++++++++++++++++++++++++++++++++++++++++----- src/payload.c | 85 ++++++++++++++++++++++++++++--------- 4 files changed, 165 insertions(+), 35 deletions(-)
Signature · 1 line
2.11.0