From: Benoît Ganne Date: Fri, 13 Nov 2020 17:33:39 +0000 (+0100) Subject: fib: remove misleading FIB_PATH_TYPE_LAST X-Git-Tag: v21.06-rc0~172 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=fcee30d6f522db4f54f9de69d4efd7449eeeae03;p=vpp.git fib: remove misleading FIB_PATH_TYPE_LAST FIB_PATH_TYPE_LAST seems to not have been updated accordingly. It is unused anyway, just remove it. Type: improvement Change-Id: I195e556a6695e3250cc03070ffd9262349f2c77b Signed-off-by: Benoît Ganne --- diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c index 6b1e8339786..2cee8467647 100644 --- a/src/vnet/fib/fib_path.c +++ b/src/vnet/fib/fib_path.c @@ -106,17 +106,8 @@ typedef enum fib_path_type_t_ { * via a DVR. */ FIB_PATH_TYPE_DVR, - /** - * Marker. Add new types before this one, then update it. - */ - FIB_PATH_TYPE_LAST = FIB_PATH_TYPE_BIER_FMASK, } __attribute__ ((packed)) fib_path_type_t; -/** - * The maximum number of path_types - */ -#define FIB_PATH_TYPE_MAX (FIB_PATH_TYPE_LAST + 1) - #define FIB_PATH_TYPES { \ [FIB_PATH_TYPE_ATTACHED_NEXT_HOP] = "attached-nexthop", \ [FIB_PATH_TYPE_ATTACHED] = "attached", \ @@ -133,11 +124,6 @@ typedef enum fib_path_type_t_ { [FIB_PATH_TYPE_DVR] = "dvr", \ } -#define FOR_EACH_FIB_PATH_TYPE(_item) \ - for (_item = FIB_PATH_TYPE_FIRST; \ - _item <= FIB_PATH_TYPE_LAST; \ - _item++) - /** * Enurmeration of path operational (i.e. derived) attributes */