On 2024/1/19 0:50, 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. > > Signed-off-by: Stephen Hemminger <step...@networkplumber.org> > Acked-by: Konstantin Ananyev <konstantin.anan...@huawei.com> > Acked-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru> > ---
Acked-by: Chengwen Feng <fengcheng...@huawei.com>