On Fri, 19 Jan 2024 12:58:47 -0800
Tyler Retzlaff <roret...@linux.microsoft.com> wrote:

> On Wed, Jan 17, 2024 at 10:19:55AM -0800, Stephen Hemminger wrote:
> > These macros work like RTE_MIN and RTE_MAX but take an explicit
> > type. Necessary when being used in static assertions since
> > RTE_MIN and RTE_MAX use temporary variables which confuses
> > compilers constant expression checks. These macros could also
> > be useful in other scenarios when bounded range is useful.
> > 
> > Naming is chosen to be similar to Linux kernel conventions.  
> 
> parameter ordering seems weird, also Linux kernel copied? just curious
> more than anything. if not i would put 't' as the first parameter.
> 
> Acked-by: Tyler Retzlaff <roret...@linux.microsoft.com>

Hmm, kernel version takes type first will use that.

Reply via email to