On 17-01-17 06:53 AM, Paul Blakey wrote:
Should be "trivial" like my patch.
Add a new TLV type in TCA_XXX enum in rtnetlink.h
in tc_ctl_tfilter look for it and memcpy it
in tcf_fill_node set it on the new TCA_XXX if the cls struct
has it present.
That's exactly what I did before I realized it won't work per internal
element (per handle), which is what I want. see my example.
So I'll probably implement it like actions dumping/init works -
tcf_exts_init, tcf_exts_dump (calling a generic functions on all
classifiers who want this).
I'll add something like get_cookie, dump_cookie. which get/set the
TCA_COOKIE.
Yes, that makes more sense.
cheers,
jamal