From: Jakub Kicinski <kuba@kernel.org>
To: Maxim Mikityanskiy <maximmi@nvidia.com>
Cc: dsahern@gmail.com, netdev@vger.kernel.org,
stephen@networkplumber.org, tariqt@nvidia.com
Subject: Re: [PATCH iproute2-next v2] ss: Shorter display format for TLS zerocopy sendfile
Date: Mon, 6 Jun 2022 10:59:36 -0700 [thread overview]
Message-ID: <20220606105936.4162fe65@kernel.org> (raw)
In-Reply-To: <2a1d3514-5c6a-62b6-05b7-b344e0ba3e47@nvidia.com>
On Mon, 6 Jun 2022 14:29:02 +0300 Maxim Mikityanskiy wrote:
> > The difference is that the person writing the code (who will interact
> > with kernel defines) is likely to have a deeper understanding of the
> > technology and have read the doc. My concern is that an ss user will
> > have much more superficial understanding of the internals so we need
> > to be more careful to present the information in the most meaningful
> > way.
> >
> > E.g. see the patch for changing dev->operstate to UP from UNKNOWN
> > because users are "confused". If you just call the thing "zc is enabled"
> > I'm afraid users will start reporting that the "go fast mode" is not
> > engaged as a bug, without appreciation for the possible side effects.
>
> That makes some sense to me. What about calling the ss flag
> "zc_sendfile_ro" or "zc_ro_sendfile"? It will still be clear it's
> zerocopy, but with some nuance.
That'd be an acceptable compromise. Hopefully sufficiently forewarned
users will mentally remove the zc_ part and still have a meaningful
amount of info about what the flag does.
Any reason why we wouldn't reuse the same knob for zc sendmsg()? If we
plan to reuse it we can s/sendfile/send/ to shorten the name, perhaps.
> > Dunno if it's useful but FWIW I pushed my WIP branch out:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux.git/commit/?h=tls-wip&id=d923f1049a1ae1c2bdc1d8f0081fd9f3a35d4155
> > https://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux.git/commit/?h=tls-wip&id=b814ee782eef62d6e2602ab3ba7b31ca03cfe44c
>
> I took a glance, and I agree zerocopy isn't the best name for your
> feature. If I wanted to indicate it saves one copy, I would call it
> "direct decrypt". "Expect no pad" also works from the point of view of
> declaring limitations.
>
> Another topic to consider is whether TLS 1.3 should be part of the name,
> and should "TlsDecryptRetry" be more specific (if a future feature also
> retries decryption as a fallback, do we want to count these retries in
> the same counter or in a new counter?)
I wanted to avoid the versions because TLS 1.4 may need the same
optimization.
You have a point about the more specific counter, let me add a counter
for NoPad being violated (tail == 0) as well as the overall "decryption
happened twice" counter.
next prev parent reply other threads:[~2022-06-06 17:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 12:23 [PATCH iproute2-next] ss: Shorter display format for TLS zerocopy sendfile Maxim Mikityanskiy
2022-06-01 23:42 ` [PATCH iproute2-next v2] " Jakub Kicinski
2022-06-02 9:13 ` Maxim Mikityanskiy
2022-06-02 16:44 ` Jakub Kicinski
2022-06-03 13:47 ` Maxim Mikityanskiy
2022-06-03 15:51 ` Jakub Kicinski
2022-06-06 11:29 ` Maxim Mikityanskiy
2022-06-06 15:45 ` Stephen Hemminger
2022-06-06 17:59 ` Jakub Kicinski [this message]
2022-06-07 10:35 ` Maxim Mikityanskiy
2022-06-07 17:30 ` Jakub Kicinski
2022-06-07 21:08 ` Stephen Hemminger
2022-06-08 10:04 ` Maxim Mikityanskiy
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=20220606105936.4162fe65@kernel.org \
--to=kuba@kernel.org \
--cc=dsahern@gmail.com \
--cc=maximmi@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=tariqt@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.