[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <70464673-4ecf-169f-7b70-71f8d8c41cd@nvidia.com>
Date: Tue, 14 Dec 2021 19:07:31 +0200
From: Paul Blakey <paulb@...dia.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <dev@...nvswitch.org>, <netdev@...r.kernel.org>,
Saeed Mahameed <saeedm@...dia.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Pravin B Shelar <pshelar@....org>, <davem@...emloft.net>,
Jiri Pirko <jiri@...dia.com>, wenxu <wenxu@...oud.cn>,
"Marcelo Ricardo Leitner" <marcelo.leitner@...il.com>,
Oz Shlomo <ozsh@...dia.com>, Vlad Buslov <vladbu@...dia.com>,
Roi Dayan <roid@...dia.com>
Subject: Re: [PATCH net v2 2/3] net/sched: flow_dissector: Fix matching on
zone id for invalid conns
On Sat, 11 Dec 2021, Jakub Kicinski wrote:
> On Thu, 9 Dec 2021 09:57:33 +0200 Paul Blakey wrote:
> > @@ -238,10 +239,12 @@ void
> > skb_flow_dissect_ct(const struct sk_buff *skb,
> > struct flow_dissector *flow_dissector,
> > void *target_container, u16 *ctinfo_map,
> > - size_t mapsize, bool post_ct)
> > + size_t mapsize)
> > {
> > #if IS_ENABLED(CONFIG_NF_CONNTRACK)
> > + bool post_ct = tc_skb_cb(skb)->post_ct;
> > struct flow_dissector_key_ct *key;
> > + u16 zone = tc_skb_cb(skb)->zone;
> > enum ip_conntrack_info ctinfo;
> > struct nf_conn_labels *cl;
> > struct nf_conn *ct;
> > @@ -260,6 +263,7 @@ skb_flow_dissect_ct(const struct sk_buff *skb,
> > if (!ct) {
> > key->ct_state = TCA_FLOWER_KEY_CT_FLAGS_TRACKED |
> > TCA_FLOWER_KEY_CT_FLAGS_INVALID;
> > + key->ct_zone = zone;
> > return;
> > }
> >
>
> Why is flow dissector expecting skb cb to be TC now?
> Please keep the appropriate abstractions intact.
>
Will do. Sending v3.
Powered by blists - more mailing lists