fix map update with concatenation and timeouts
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | netlink_delinearize: fix decoding of concat data elementsrc/ | +8 | 0 replies | |
| 2/3 | netlink_linearize: fix timeout with map updatessrc/ | +7 | 2 replies | |
| 3/3 | tests: add a test case for map update from packet path with concattests/ tests/ | +30 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nft 0/3] fix map update with concatenation and timeouts
When "update" is used with a map, nft will ignore a given timeout. Futhermore, listing is broken, only the first data expression gets decoded:
in:
meta l4proto tcp update @pinned { ip saddr . ct original proto-src : ip daddr . ct original proto-dst timeout 90s }
out:
meta l4proto tcp update @pinned { ip saddr . ct original proto-src : ip daddr }
Missing timeout is input bug (never passed to kernel), mussing "proto-dst" is output bug.
Also add a test case.
Florian Westphal (3):
netlink_delinearize: fix decoding of concat data element
netlink_linearize: fix timeout with map updates
tests: add a test case for map update from packet path with concat
src/netlink_delinearize.c | 8 ++++++++ src/netlink_linearize.c | 7 +++++++ .../maps/dumps/typeof_maps_concat_update_0.nft | 12 ++++++++++++ .../testcases/maps/typeof_maps_concat_update_0 | 18 ++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft create mode 100755 tests/shell/testcases/maps/typeof_maps_concat_update_0
Signature · 1 line
2.38.1