[PATCH net-next] net: sched: act_ctinfo: tidy UAPI definition

2019-06-19 Thread Kevin Darbyshire-Bryant
Remove some enums from the UAPI definition that were only used internally and are NOT part of the UAPI. Signed-off-by: Kevin Darbyshire-Bryant --- include/net/tc_act/tc_ctinfo.h| 5 + include/uapi/linux/tc_act/tc_ctinfo.h | 5 - 2 files changed, 5 insertions(+), 5 deletions

[PATCH net-next 2/2] net: sched: act_ctinfo: fix policy validation

2019-06-17 Thread Kevin Darbyshire-Bryant
So even with this kernel fix to do things correctly you still cannot instantiate a new 'strict' nla_parse_nested based action such as act_ctinfo with iproute2's tc. Signed-off-by: Kevin Darbyshire-Bryant --- net/sched/act_ctinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH net-next 1/2] net: sched: act_ctinfo: fix action creation

2019-06-17 Thread Kevin Darbyshire-Bryant
validation before action creation. As an inexperienced developer I've learned that copy/pasting/backporting/forward porting code correctly is hard. If I ever get to a developer conference I shall don the cone of shame. Signed-off-by: Kevin Darbyshire-Bryant --- net/sched/act_ctinfo.c | 1 + 1 file c

[PATCH net-next 0/2] net: sched: act_ctinfo: fixes

2019-06-17 Thread Kevin Darbyshire-Bryant
dation of NLA_F_NESTED flag") and 8cb081746c03 ("netlink: make validation more configurable for future strictness”) which led to the policy validation fix, which then led to the action creation fix both contained in this series. If I ever get to a developer conference please feel free to ta

[PATCH net-next] sched: act_ctinfo: use extack error reporting

2019-06-14 Thread Kevin Darbyshire-Bryant
Use extack error reporting mechanism in addition to returning -EINVAL NL_SET_ERR_* code shamelessy copy/paste/adjusted from act_pedit & sch_cake and used as reference as to what I should have done in the first place. Signed-off-by: Kevin Darbyshire-Bryant --- net/sched/act_ctinfo.c

Re: [PATCH net-next 1/3] net/sched: Introduce action ct

2019-06-13 Thread Kevin Darbyshire-Bryant
> On 11 Jun 2019, at 16:15, Paul Blakey wrote: > > > On 6/11/2019 4:59 PM, Toke Høiland-Jørgensen wrote: >> Paul Blakey writes: >> >>> Allow sending a packet to conntrack and set conntrack zone, mark, >>> labels and nat parameters. >> How is this different from the newly merged ctinfo action

[RFC PATCH net-next] sched: act_ctinfo: use extack error reporting

2019-06-13 Thread Kevin Darbyshire-Bryant
Use extack error reporting mechanism in addition to returning -EINVAL Signed-off-by: Kevin Darbyshire-Bryant --- net/sched/act_ctinfo.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/net/sched/act_ctinfo.c b/net/sched/act_ctinfo.c index e78b60e47c0f

[PATCH iproute2-next v2] tc: add support for action act_ctinfo

2019-06-04 Thread Kevin Darbyshire-Bryant
tics: +Sent 32890260 bytes 120441 pkt (dropped 0, overlimits 0 requeues 0) +backlog 0b 0p requeues 0 +.br +.SH SEE ALSO +.BR tc (8), +.BR tc-cake (8) +.BR tc-connmark (8) +.BR tc-mirred (8) +.SH AUTHORS +ctinfo was written by Kevin Darbyshire-Bryant. diff --git a/tc/Makefile b/tc/Mak

[PATCH iproute2-next v1] tc: add support for action act_ctinfo

2019-06-03 Thread Kevin Darbyshire-Bryant
is the bitmask to determine conditional restoring cpmark MASK mask applied to restored packet mark ZONE is the conntrack zone CONTROL := reclassify | pipe | drop | continue | ok | goto chain Signed-off-by: Kevin Darbyshire-Bryant Reviewed-by: Toke

[PATCH RFC iproute2-next v4] tc: add support for action act_ctinfo

2019-06-03 Thread Kevin Darbyshire-Bryant
is the bitmask to determine conditional restoring cpmark MASK mask applied to restored packet mark ZONE is the conntrack zone CONTROL := reclassify | pipe | drop | continue | ok | goto chain Signed-off-by: Kevin Darbyshire-Bryant --- v2 - fix whitespace

[PATCH RFC iproute2-next v3] tc: add support for action act_ctinfo

2019-06-02 Thread Kevin Darbyshire-Bryant
is the bitmask to determine conditional restoring cpmark MASK mask applied to restored packet mark ZONE is the conntrack zone CONTROL := reclassify | pipe | drop | continue | ok | goto chain Signed-off-by: Kevin Darbyshire-Bryant --- v2 - fix whitespace

Re: [PATCH 07/17] net: convert sock.sk_wmem_alloc from atomic_t to refcount_t

2018-06-15 Thread Kevin Darbyshire-Bryant
> On 15 Jun 2018, at 21:57, David Woodhouse wrote: > > > > On Fri, 2018-06-15 at 20:49 +, Kevin Darbyshire-Bryant wrote: >> >>> That does end up being quite hairy. I don't think it's worth doing. >>> >>> This should probably suf

Re: [PATCH 07/17] net: convert sock.sk_wmem_alloc from atomic_t to refcount_t

2018-06-15 Thread Kevin Darbyshire-Bryant
at needs to be killed with fire > anyway. It's utterly pointless as discussed. I had already done so as part of the last pastebin debug info round :-) As regards your patch… MAGIC! Works an absolute treat. Will get that submitted along with the ‘nuke ifx_atm_alloc_skb’ patch to OpenWrt

Re: [Cake] [PATCH net-next v15 4/7] sch_cake: Add NAT awareness to packet classifier

2018-05-23 Thread Kevin Darbyshire-Bryant
> On 23 May 2018, at 23:40, Toke Høiland-Jørgensen wrote: > > > Hmm, and we still have an issue with ingress filtering (where cake is > running on an ifb interface). That runs pre-NAT in the conntrack case, > and we can't do the RX trick. Here we do the lookup manually in > conntrack (and thi

Re: [Cake] [PATCH net-next v12 3/7] sch_cake: Add optional ACK filter

2018-05-18 Thread Kevin Darbyshire-Bryant
> On 18 May 2018, at 05:27, Cong Wang wrote: > > On Thu, May 17, 2018 at 4:23 AM, Toke Høiland-Jørgensen wrote: >> Eric Dumazet writes: >> >>> On 05/16/2018 01:29 PM, Toke Høiland-Jørgensen wrote: The ACK filter is an optional feature of CAKE which is designed to improve performanc

Re: [PATCH iproute2-next] json_print: fix print_uint with helper type extensions

2018-03-30 Thread Kevin Darbyshire-Bryant
> On 30 Mar 2018, at 15:57, David Ahern wrote: > > > My comment was to send separate patches - bug fix only for iproute2 > master and then a separate one for enhancements going to -next. If the > enhancements overlap the bug fix then it needs to wait for the merge. > This is really no differen

Re: [PATCH iproute2] json_print: fix print_uint hidden type promotion

2018-03-29 Thread Kevin Darbyshire-Bryant
> On 29 Mar 2018, at 22:02, Stephen Hemminger > wrote: > > On Thu, 29 Mar 2018 20:22:20 +0100 > Kevin Darbyshire-Bryant wrote: > >> print_int used 'int' type internally, whereas print_uint used 'uint64_t' >> >> These helper functio

Re: [PATCH iproute2-next] json_print: fix print_uint with helper type extensions

2018-03-29 Thread Kevin Darbyshire-Bryant
> On 29 Mar 2018, at 22:03, Stephen Hemminger > wrote: > > On Thu, 29 Mar 2018 20:32:10 +0100 > Kevin Darbyshire-Bryant wrote: > >> Introduce print helper functions for int, uint, explicit int32, uint32, >> int64 & uint64. >> >> print_int used

Re: [PATCH] json_print: fix print_uint with helper type extensions

2018-03-29 Thread Kevin Darbyshire-Bryant
> On 26 Mar 2018, at 16:03, David Ahern wrote: > > On 3/18/18 2:40 AM, Kevin Darbyshire-Bryant wrote: >> >> >>> On 16 Mar 2018, at 20:34, Stephen Hemminger >>> wrote: >>>> >>>> print_uint64(PRINT_ANY, "refcnt", "

[PATCH iproute2-next] json_print: fix print_uint with helper type extensions

2018-03-29 Thread Kevin Darbyshire-Bryant
teger sizes. To portably use these formats you should use the relevant PRIdN or PRIuN formats as defined in inttypes.h e.g. print_uint64(PRINT_ANY, "refcnt", "refcnt %" PRIu64 " ", t->tcm_info) Signed-off-by: Kevin Darbyshire-Bryant --- include/json_print.h

[PATCH iproute2] json_print: fix print_uint hidden type promotion

2018-03-29 Thread Kevin Darbyshire-Bryant
big endian architectures where 'vfprintf' would be looking in the middle of an int64 type. print_u/int now stick with native int size. Signed-off-by: Kevin Darbyshire-Bryant --- include/json_print.h | 2 +- lib/json_print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletio

Re: [PATCH] json_print: fix print_uint with helper type extensions

2018-03-18 Thread Kevin Darbyshire-Bryant
> On 16 Mar 2018, at 20:34, Stephen Hemminger > wrote: >> >> print_uint64(PRINT_ANY, "refcnt", "refcnt %" PRIu64 " ", t->tcm_info) >> >> Signed-off-by: Kevin Darbyshire-Bryant > > I am fine with this. But since there is n

[PATCH] json_print: fix print_uint with helper type extensions

2018-03-15 Thread Kevin Darbyshire-Bryant
print_u/int32 & print u/int64 functions offer explicit integer sizes. To portably use these formats you should use the relevant PRIdN or PRIuN formats as defined in inttypes.h e.g. print_uint64(PRINT_ANY, "refcnt", "refcnt %" PRIu64 " ", t->tcm_info) Sig

Re: OpenWRT wrong adjustment of fq_codel defaults (Was: [Codel] fq_codel_drop vs a udp flood)

2016-05-07 Thread Kevin Darbyshire-Bryant
On 06/05/16 10:42, Jesper Dangaard Brouer wrote: > Hi Felix, > > This is an important fix for OpenWRT, please read! > > OpenWRT changed the default fq_codel sch->limit from 10240 to 1024, > without also adjusting q->flows_cnt. Eric explains below that you must > also adjust the buckets (q->flows