[dpdk-dev] [RFC] Yet another option for DPDK options

Matthew Hall mhall at mhcomputing.net
Fri Jun 3 23:40:18 CEST 2016


On Fri, Jun 03, 2016 at 07:07:50PM +0000, Wiles, Keith wrote:
> If I understand your code above the API would pass in a default value if one 
> did not exist in the storage, which I guess is reasonable. Anyone think this 
> is a good idea or not?

This model has worked very well in my code at least. It keeps good reference 
locality between where the option is accessed and how it is configured and 
what it is called... all to the same line of code.

Matthew.


More information about the dev mailing list