[PATCH dpdk v2 14/16] rib6,fib6,lpm6: remove duplicate constants
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 4 18:16:47 CEST 2024
On Fri, 04 Oct 2024 13:54:42 +0200
"Robin Jarry" <rjarry at redhat.com> wrote:
> Stephen Hemminger, Oct 04, 2024 at 01:12:
> > On Tue, 1 Oct 2024 10:17:26 +0200
> > Robin Jarry <rjarry at redhat.com> wrote:
> >
> >> Replace all address size and max depth macros with common ones from
> >> rte_ip6.h.
> >>
> >> Signed-off-by: Robin Jarry <rjarry at redhat.com>
> >
> > This looks good but since these #defines are in public headers you need
> > to leave a copy (with __rte_deprecated) around for a couple of releases
> > so that userspace is notified.
>
> I'm not sure how to indicate that a macro is deprecated. Do I need to
> change it to a variable?
>
You can do something like:
#define RTE_FIB6_MAXDEPTH RTE_DEPRECATED(RTE_FIB6_MAXDEPTH) RTE_IPV6_MAX_DEPTH
The part in the middle will cause warning if used.
More information about the dev
mailing list