From: Tom Herbert <tom@quantonium.net>
To: Edward Cree <ecree@solarflare.com>
Cc: John Fastabend <john.fastabend@gmail.com>,
Tom Herbert <tom@herbertland.com>,
Linux Kernel Network Developers <netdev@vger.kernel.org>,
Rohit Seth <rohit@quantonium.net>,
Dave Watson <davejwatson@fb.com>
Subject: Re: [PATCH v3 net-next 0/5] ulp: Generalize ULP infrastructure
Date: Tue, 8 Aug 2017 14:08:35 -0700 [thread overview]
Message-ID: <CAPDqMerc5ZH+6N6vRvJBShPM-mMrh2Sd+p-+gG1q63jrdZO3TQ@mail.gmail.com> (raw)
In-Reply-To: <6bee85e2-5fb3-135a-ad7c-ae4a350f7148@solarflare.com>
On Tue, Aug 8, 2017 at 1:23 PM, Edward Cree <ecree@solarflare.com> wrote:
> On 08/08/17 20:50, Tom Herbert wrote:
>> It's a tradeoff. The nice thing about using strings is that we don't
>> need maintain a universal enum.
> Hmm, that makes it sound as though you're intending for random out-of-tree
> modules to add these things; since if they're in-tree it's easy for them
> to get enum values assigned when they're added. Do we really want to
> encourage sticking random module code into the network stack like this?
>
> In any case, if you go with the enum approach and later it _does_ prove
> necessary to have more flexibility, you can have enum values dynamically
> assigned (like genetlink manages to do); and programs using the existing
> fixed IDs will continue to work. It's much harder to go the other way...
>
There is history and precedence. The string mechanism for ulp_ops a
direct port of the original ULP infrastructure done for kTLS. That
code based the mechanism on TCP congestion ops and that was introduced
into the kernel twelve years ago. This method doesn't seem to have
been viewed as a problem before now...
Tom
> -Ed
next prev parent reply other threads:[~2017-08-08 21:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 17:28 [PATCH v3 net-next 0/5] ulp: Generalize ULP infrastructure Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 1/5] proto_ops: Fixes to adding locked version of sendmsg/page Tom Herbert
2017-08-08 9:55 ` John Fastabend
2017-08-07 17:28 ` [PATCH v3 net-next 2/5] inet: include net/sock.h in inet_common.h Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 3/5] sock: ULP infrastructure Tom Herbert
2017-08-08 10:16 ` John Fastabend
2017-08-08 16:38 ` Hannes Frederic Sowa
2017-08-08 17:07 ` Tom Herbert
2017-08-07 17:28 ` [PATCH v3 net-next 4/5] tcp: Adjust TCP ULP to defer to sockets ULP Tom Herbert
2017-08-08 19:37 ` John Fastabend
2017-08-07 17:28 ` [PATCH v3 net-next 5/5] ulp: Documention for ULP infrastructure Tom Herbert
2017-08-08 15:31 ` [PATCH v3 net-next 0/5] ulp: Generalize " John Fastabend
2017-08-08 15:38 ` John Fastabend
2017-08-08 17:04 ` Tom Herbert
2017-08-08 19:30 ` John Fastabend
2017-08-08 19:50 ` Tom Herbert
2017-08-08 20:23 ` Edward Cree
2017-08-08 21:08 ` Tom Herbert [this message]
2017-08-09 1:07 ` David Miller
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=CAPDqMerc5ZH+6N6vRvJBShPM-mMrh2Sd+p-+gG1q63jrdZO3TQ@mail.gmail.com \
--to=tom@quantonium.net \
--cc=davejwatson@fb.com \
--cc=ecree@solarflare.com \
--cc=john.fastabend@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rohit@quantonium.net \
--cc=tom@herbertland.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).