From: Cong Wang <xiyou.wangcong@gmail.com>
To: "Kevin 'ldir' Darbyshire-Bryant" <ldir@darbyshire-bryant.me.uk>
Cc: "jhs@mojatatu.com" <jhs@mojatatu.com>,
"jiri@resnulli.us" <jiri@resnulli.us>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [RFC PATCH 1/1 v2] net: sched: Introduce conndscp action
Date: Fri, 22 Mar 2019 14:31:33 -0700 [thread overview]
Message-ID: <CAM_iQpV3S3iK9QaCGJ9wR1EwQik097WY=eRvmM7E2d9KZ34Edw@mail.gmail.com> (raw)
In-Reply-To: <B9E730DA-63AB-4FB2-8509-4FFF83F63EEF@darbyshire-bryant.me.uk>
On Fri, Mar 22, 2019 at 1:50 PM Kevin 'ldir' Darbyshire-Bryant
<ldir@darbyshire-bryant.me.uk> wrote:
>
>
>
> > On 22 Mar 2019, at 20:05, Cong Wang <xiyou.wangcong@gmail.com> wrote:
> >
> > On Fri, Mar 22, 2019 at 11:26 AM Kevin 'ldir' Darbyshire-Bryant
> > <ldir@darbyshire-bryant.me.uk> wrote:
> >>
> >> Hi Cong,
> >>
> >> Thanks for your questions.
> >>
> >>> On 22 Mar 2019, at 17:39, Cong Wang <xiyou.wangcong@gmail.com> wrote:
> >>>
> >>> Hello,
> >>>
> >>> On Fri, Mar 22, 2019 at 7:09 AM Kevin 'ldir' Darbyshire-Bryant
> >>> <ldir@darbyshire-bryant.me.uk> wrote:
> >>>>
> >>>> Conndscp is a new tc filter action module. It is designed to copy DSCPs
> >>>> to conntrack marks and the reverse operation of conntrack mark contained
> >>>> DSCPs to the diffserv field of suitable skbs.
> >>>>
> >>>
> >>> Is it possible and feasible to integrate this into connmark?
> >>
> >> I started off coding it that way but quickly ran into my limitations with netlink messaging and became frustrated. Aside from my own limitations, conndscp ab/uses tcf_qstats requeues & overlimits to indicate DSCP->MARK->DSCP operations and has been useful in proving DSCP/marking operations are occurring in the right times/places. Integrating with connmark which itself uses overlimits to indicate conntrack mark to skb->mark restoration would lose that differentiation/confirmation/debug ability. A possibility is to ab/use the drop count instead but I fear that would cause confusion.
> >
> > This sounds problematic, why a flag/parameter doesn't work?
> >
> I don’t understand the question?
You said conndscp uses some stat to save some configuration
information, that is, DSCP->MARK->DSCP operations. But
configuration information is usually saved in a parameter struct
or some priviate flag. So, I have to ask why a flag/parameter doesn't
work for this case?
And, you also implied this is a barrier for you to reuse connmark
action.
Am I misunderstanding anything here?
>
> >
> >>
> >>> Both are intended to retrieve information from conntrack and store
> >>> it into skb. I know the name "connmark" already says it is a mark,
> >>> while yours isn't, I still want to see if we can avoid code duplications.
> >>
> >> I understand your quest :-) I think conndscp does a bit more than connmark. Conndscp is two way diffserv<-->conntrack mark operation. connmark is a single way conntrack mark->skb.mark operation.
> >
> > I am not sure if it is a good idea to modify conntrack in TC,
> > as conntrack doesn't even belong to TC. Retrieving information
> > from conntrack and saving it to skb is fine, as we modify skb
> > in many different ways.
>
> OK, this is why I wanted to ask as RFC before I went too far implementing stuff. AFAIUI you’re saying it’s tc is okay to restore stuff from a connmark but not to set/change the conntrack mark. So I need to find a legal place to store a DSCP into a conntrack mark.
Yes.
I guess you should look into netfilter to modify any conntrack attribute,
it is at least where conntrack belongs to. :)
Thanks.
next prev parent reply other threads:[~2019-03-22 21:31 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-19 19:49 [RFC PATCH 0/1 net-next] net: sched: Introduce conndscp action Kevin 'ldir' Darbyshire-Bryant
2019-03-19 19:49 ` [PATCH 1/1] " Kevin 'ldir' Darbyshire-Bryant
2019-03-21 17:58 ` kbuild test robot
2019-03-22 14:09 ` [RFC PATCH 1/1 v2] " Kevin 'ldir' Darbyshire-Bryant
2019-03-22 17:39 ` Cong Wang
2019-03-22 18:26 ` Kevin 'ldir' Darbyshire-Bryant
2019-03-22 20:05 ` Cong Wang
2019-03-22 20:50 ` Kevin 'ldir' Darbyshire-Bryant
2019-03-22 21:31 ` Cong Wang [this message]
2019-03-22 22:06 ` Kevin 'ldir' Darbyshire-Bryant
2019-03-22 23:09 ` Cong Wang
2019-03-23 17:45 ` Kevin 'ldir' Darbyshire-Bryant
2019-03-25 19:17 ` Cong Wang
2019-03-27 20:32 ` Kevin 'ldir' Darbyshire-Bryant
2019-03-29 20:45 ` [RFC net-next 0/1] net: sched: Introduce conntrack action Kevin 'ldir' Darbyshire-Bryant
2019-03-29 20:45 ` [RFC net-next 1/1] " Kevin 'ldir' Darbyshire-Bryant
2019-04-01 13:14 ` [RFC net-next 0/1] " Marcelo Ricardo Leitner
2019-04-01 13:54 ` Kevin 'ldir' Darbyshire-Bryant
2019-04-01 14:22 ` Paul Blakey
2019-04-01 21:06 ` Cong Wang
2019-04-02 9:24 ` Kevin 'ldir' Darbyshire-Bryant
2019-04-03 7:47 ` Paul Blakey
2019-04-03 8:23 ` Kevin 'ldir' Darbyshire-Bryant
2019-04-03 11:56 ` Paul Blakey
2019-04-03 12:35 ` Kevin 'ldir' Darbyshire-Bryant
2019-04-09 11:33 ` [RFC net-next 0/1] net: sched: Introduce act_ctinfo action Kevin 'ldir' Darbyshire-Bryant
2019-04-09 11:33 ` [RFC net-next 1/1] " Kevin 'ldir' Darbyshire-Bryant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM_iQpV3S3iK9QaCGJ9wR1EwQik097WY=eRvmM7E2d9KZ34Edw@mail.gmail.com' \
--to=xiyou.wangcong@gmail.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=ldir@darbyshire-bryant.me.uk \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).