On Fri, 04 Oct 2024 13:54:42 +0200
"Robin Jarry" <rja...@redhat.com> wrote:

> Stephen Hemminger, Oct 04, 2024 at 01:12:
> > On Tue,  1 Oct 2024 10:17:26 +0200
> > Robin Jarry <rja...@redhat.com> wrote:
> >  
> >> Replace all address size and max depth macros with common ones from
> >> rte_ip6.h.
> >> 
> >> Signed-off-by: Robin Jarry <rja...@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.

Reply via email to