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

2019-07-06 Thread Paul Blakey
On 7/5/2019 12:55 AM, Jakub Kicinski wrote: > On Thu, 4 Jul 2019 14:53:50 +0300, Paul Blakey wrote: >> +static const struct nla_policy ct_policy[TCA_CT_MAX + 1] = { >> +[TCA_CT_ACTION] = { .type = NLA_U16 }, > Please use strict checking in all new policies. > > attr 0 must have .strict_start_

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

2019-07-04 Thread Jakub Kicinski
On Thu, 4 Jul 2019 14:53:50 +0300, Paul Blakey wrote: > +static const struct nla_policy ct_policy[TCA_CT_MAX + 1] = { > + [TCA_CT_ACTION] = { .type = NLA_U16 }, Please use strict checking in all new policies. attr 0 must have .strict_start_type set.

[PATCH net-next v3 1/4] net/sched: Introduce action ct

2019-07-04 Thread Paul Blakey
Allow sending a packet to conntrack module for connection tracking. The packet will be marked with conntrack connection's state, and any metadata such as conntrack mark and label. This state metadata can later be matched against with tc classifers, for example with the flower classifier as below.