Re: [PATCH net v2 2/3] taprio: Allow users not to specify "flags" when changing schedules
From: Vladimir Oltean <olteanv@gmail.com>
Date: 2020-01-29 11:24:44
Hi David, On Wed, 29 Jan 2020 at 12:14, David Miller [off-list ref] wrote:
From: Vinicius Costa Gomes <vinicius.gomes@intel.com> Date: Tue, 28 Jan 2020 15:52:26 -0800quoted
When any offload mode is enabled, users had to specify the "flags" parameter when adding a new "admin" schedule. This fix allows that parameter to be omitted when adding a new schedule. This will make that we have one source of truth for 'flags'. Fixes: 4cfd5779bd6e ("taprio: Add support for txtime-assist mode") Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>This will visibly change behavior for a feature in a released kernel (v5.3 and later) and it means that newer tools will do things that don't work in older kernels. I think your opportunity to adjust these semantics, has therefore, long passed. Sorry.
This is where the kernel-userspace policy escapes me a little bit. How is this different from having a bug that would cause the "flags" field to e.g. be ignored? Would the kernel policy make it impossible for that bug to be fixed? At some point, the 5.3 kernel will go EOL. When would be a good time to make the "flags" optional on "tc qdisc replace", without concerns about different behavior across versions? Regards, -Vladimir