Skip to contentSkip to conversation

dev Digest, Vol 68, Issue 68

DISCUSSION Betts, Ian 1 participant 1 message Dec 9, 2015 1 message not in the archive

lore
Share & tools
lore

Betts, Ian

author
#1 lore raw
In reply to a message not in the archive

Date: Fri, 27 Nov 2015 15:09:24 +0200
From: Panu Matilainen <[email protected]>
To: "Doherty, Declan" <[email protected]>, Thomas Monjalon
<[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] cryptodev: mark experimental state
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Quoted 39 lines · Declan
Quoted 30 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, November 26, 2015 10:09 AM
To: Panu Matilainen; Doherty, Declan
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] cryptodev: mark experimental state

2015-11-26 10:00, Panu Matilainen:

Quoted 22 lines · Panu Matilainen
Quoted 20 lines · Thomas Monjalon

config/common_linuxapp CONFIG_RTE_PMD_PACKET_PREFETCH=y · line 325

Quoted 10 lines
config/common_linuxapp +1 -0
@@ -319,6 +319,7 @@ CONFIG_RTE_PMD_PACKET_PREFETCH=y
 
   #
   # Compile generic crypto device library
+# EXPERIMENTAL: API may change without prior notice
   #
   CONFIG_RTE_LIBRTE_CRYPTODEV=y
   CONFIG_RTE_LIBRTE_CRYPTODEV_DEBUG=n

[...]

I think an experimental library which declares itself exempt from the ABI policy should not be compiled by default. That way anybody wanting to try it out will be forced to notice the experimental status.

More generally / longer term, perhaps there should be a CONFIG_RTE_EXPERIMENTAL which wraps all experimental features and defaults to off.

Quoted 7 lines
Quoted 4 lines

On a related note, librte_mbuf_offload cannot be built if CONFIG_RTE_LIBRTE_CRYPTODEV is disabled. Which seems to suggest its (at least currently) so tightly couple to cryptodev that perhaps it too should be marked experimental and default to off.

I think you are right.
Declan, what is your opinion?

Quoted 24 lines

Hey Thomas, yes librte_mbuf_offload should also be set as experimental, it's probably one of the areas which will most likely change in the future.

On the issue of turning off experimental libraries in the build by default, my preference would be not to turn them off unless the library has external dependencies, otherwise the possibility of patches being submitted which could break an experimental library will be much higher. In my opinion the fewer build configurations developers have to test against the better.

Quoted 15 lines

What I'm more worried about is users and developers starting to rely on it while still in experimental state, a single comment in the header is really easy to miss.

So I'd like to see *some* mechanism which forces users and developers to acknowledge the fact that they're dealing with experimental work. Defaulting to off is one possibility, another one would be wrapping experimental APIs behind a define which you have to set to be able to use the API, eg:

#if defined(I_KNOW_THIS_IS_EXPERIMENTAL_AND_MAY_EAT_BABIES) [...]
#endif

- Panu -

I can see alternative/complementary that is to introduce a new "experimental" patch state in patchwork.

This approach might be useful to get wider exposure and feedback on experimental work earlier in its lifecycle. Experimental patches may be constrained to a limited subset of target and host environments. Experimental patches should be based off of a stable dpdk release, but would not be applied in the release.

Whilst the objective would be that any such patch would mature to become the kind of "experimental component" as proposed above in this thread, and/or eventually be adopted as a mainstream component, there would be no guarantee of that.

For the user it should very clearly be "Buyer beware" on such patches, and for the developer community the support burden should be solely the responsibility of the patch maintainer.

The only reason to have a new patchwork state is to make it easier to filter them in patchwork. Some way of publishing the list of experimental patches available for a release would be helpful, maybe as an addendum to the release note ?