aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authoryedg <yedg@wangsu.com>2020-08-29 14:12:20 +0800
committerNeale Ranns <nranns@cisco.com>2020-09-02 16:07:24 +0000
commitf6698d2674a502d354905655ef09857c33bb566f (patch)
tree6feabff9057fa833a868fd5992d7539785c49fce /src/vnet
parentea7178631ef292530993e0c91bf86f1ca9ae99d4 (diff)
fib: fix ADJ_NBR_ITF_OK param error
Type: fix Signed-off-by: yedonggang <yedg@wangsu.com> Change-Id: I3bf67070ed01df40626f3b90f2762158b6c3ce05
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/adj/adj_nbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_nbr.c b/src/vnet/adj/adj_nbr.c
index ddaab14ee11..921588a7ef7 100644
--- a/src/vnet/adj/adj_nbr.c
+++ b/src/vnet/adj/adj_nbr.c
@@ -39,7 +39,7 @@ typedef struct adj_nbr_key_t_
#define ADJ_NBR_ITF_OK(_proto, _itf) \
(((_itf) < vec_len(adj_nbr_tables[_proto])) && \
- (NULL != adj_nbr_tables[_proto][sw_if_index]))
+ (NULL != adj_nbr_tables[_proto][(_itf)]))
#define ADJ_NBR_ASSERT_NH_PROTO(nh_proto, err) \
do { \