From: Jakub Kicinski <kuba@kernel.org>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>,
Victor Nogueira <victor@mojatatu.com>,
xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net,
edumazet@google.com, pabeni@redhat.com, paulb@nvidia.com,
netdev@vger.kernel.org, kernel@mojatatu.com,
martin.lau@linux.dev, bpf@vger.kernel.org
Subject: Re: [PATCH net-next 1/1] net/sched: Disambiguate verdict from return code
Date: Fri, 6 Oct 2023 07:12:15 -0700 [thread overview]
Message-ID: <20231006071215.4a28b348@kernel.org> (raw)
In-Reply-To: <686dd999-bee4-ecf8-8dc4-c85a098c4a92@iogearbox.net>
On Fri, 6 Oct 2023 15:49:18 +0200 Daniel Borkmann wrote:
> > Which will no longer work with the "pack multiple values into
> > the reason" scheme of subsys-specific values :(
>
> Too bad, do you happen to know why it won't work?
I'm just guessing but the reason is enum skb_drop_reason
and the values of subsystem specific reasons won't be part
of that enum.
> Given they went into the
> length of extending this for subsystems, they presumably would also like to
> benefit from above. :/
>
> > What I'm saying is that there is a trade-off here between providing
> > as much info as possible vs basic user getting intelligible data..
>
> Makes sense. I think we can drop that aspect for the subsys specific error
> codes. Fwiw, TCP has 22 drop codes in the core section alone, so this should
> be fine if you think it's better. The rest of the patch shown should still
> apply the same way. I can tweak it to use the core section for codes, and
> then it can be successively extended if that looks good to you - unless you
> are saying from above, that just one error code is better and then going via
> detailed stats for specific errors is preferred.
No, no, multiple reasons are perfectly fine. The non-technical
advantage of mac80211 error codes being separate is that there
are no git conflicts when we add new ones. TC codes can just
be added to the main enum like TCP 🤷️
next prev parent reply other threads:[~2023-10-06 14:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-19 14:59 [PATCH net-next 1/1] net/sched: Disambiguate verdict from return code Victor Nogueira
2023-09-19 22:15 ` Daniel Borkmann
2023-09-19 23:20 ` Jamal Hadi Salim
2023-09-22 8:12 ` Daniel Borkmann
2023-09-25 23:01 ` Jamal Hadi Salim
2023-09-29 15:48 ` Daniel Borkmann
2023-10-02 19:54 ` Jamal Hadi Salim
2023-10-03 9:00 ` Daniel Borkmann
2023-10-03 12:46 ` Jamal Hadi Salim
2023-10-03 13:49 ` Daniel Borkmann
2023-10-03 21:36 ` Jamal Hadi Salim
2023-10-06 11:18 ` Daniel Borkmann
2023-10-06 13:32 ` Jakub Kicinski
2023-10-06 13:49 ` Daniel Borkmann
2023-10-06 14:12 ` Jakub Kicinski [this message]
2023-10-06 15:25 ` Jamal Hadi Salim
2023-10-06 15:45 ` Daniel Borkmann
2023-10-06 19:39 ` Jamal Hadi Salim
2023-10-06 19:59 ` Daniel Borkmann
2023-10-06 17:59 ` Daniel Xu
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=20231006071215.4a28b348@kernel.org \
--to=kuba@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kernel@mojatatu.com \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=paulb@nvidia.com \
--cc=victor@mojatatu.com \
--cc=xiyou.wangcong@gmail.com \
/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).