RFC connlabel set support using extra setter attr
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | netfilter: nftables: add connlabel set supportinclude/ net/ | +53 | 7 replies | |
| 2/3 | ct: add label set supportinclude/ include/ src/ | +34 | 0 replies | |
| 3/3 | ct: add conntrack label set supportsrc/ src/ src/ | +50 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/3] connlabel set support using extra setter attr
Hi Pablo
This attempts to implement the set support via your proposed setter attribute.
IOW instead of taking an sreg and replacing the entire label area with whatever is contained therein take a bit number passed in from userspace and set only that one bit.
So ct label set foo
will really mean 'set the foo bit in the label area', just like iptables -m connlabel --label foo --set
I'm sure that there are better ways to implement the expr <-> attr conversion, see patch #3.
Comments welcome, I'll respin it once -next is open again.
Thanks,
Florian