[dpdk-dev] [PATCH 3/5] i40e: support selecting hash functions
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Jul 24 10:07:37 CEST 2014
2014-07-24 01:01, Matthew Hall:
> On Thu, Jul 24, 2014 at 09:59:23AM +0200, Thomas Monjalon wrote:
> > Is it really a good idea to configure this kind of thing at build time?
> > Maybe yes, I'm not sure.
>
> Whether it's safe to set at runtime probably depends what happens to the card
> if it gets changed. Do you have to reset the card or the port? Or is it OK if
> it's more dynamic?
No, we can change configuration with rte_eth_dev_configure() before
initializing port. So it is truly configurable.
Requiring recompilation means it's not really configurable between 2 runs.
And it breaks binary packaging for Linux distributions.
Many things in DPDK are configured at build time. But we should wonder if
it's really a good design.
--
Thomas
More information about the dev
mailing list