From f6698d2674a502d354905655ef09857c33bb566f Mon Sep 17 00:00:00 2001 From: yedg Date: Sat, 29 Aug 2020 14:12:20 +0800 Subject: fib: fix ADJ_NBR_ITF_OK param error Type: fix Signed-off-by: yedonggang Change-Id: I3bf67070ed01df40626f3b90f2762158b6c3ce05 --- src/vnet/adj/adj_nbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { \ -- cgit 1.2.3-korg