Brian Norris <briannorris@xxxxxxxxxxxx> writes: > On Tue, Feb 11, 2020 at 6:56 PM Tony Chuang <yhchuang@xxxxxxxxxxx> wrote: >> Module parameters are really good for me, too. But we've had discussion >> before with Kalle and Brian, they both were trying hard to avoid module >> parameters. > > My personal preference is to avoid module parameters when you can fix > the defaults, and that module parameters should never be a workaround > for fixing the default behavior. > > I don't think my above preference precludes module parameters: they > can be useful as "extra debug knobs." > > But Kalle had a little more nuanced opinion here -- he didn't even > want "debug knobs" for core 802.11 functionality, because (I may be > paraphrasing) one person's "debug knob" easily becomes the next > person's "required knob." Additionally, a mess of disorganized knobs > can make maintenance difficult -- one can't really expect the average > distribution to make a good selection on 100 different parameters; and > for those that do tweak the parameters, it now creates a combinatoric > mess to debug and triage user reports of "it's broken". I can respect > all of those reasons too. Exactly my thinking as well, thanks Brian for writing these out. We should add this description "why module parameters are bad" to the wiki to make it more visible :) -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches