aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-03-29 13:06:36 +0200
committerGerrit Code Review <gerrit@fd.io>2016-03-29 12:50:53 +0000
commitf1bd8bec8776755dfb98f1a93be0f9ee884aa7da (patch)
tree644d2e9673c3f9b421ef391a6a5edccf52af5fd1 /vpp
parentb2ef4dde97b51b73a596093f06cbbdb84f23a824 (diff)
Move classify_table_index under the union
Fields needed only by specific adj type should be shared. Change-Id: I59ee15a29d2f5f527f46910a1a63866b291734c7 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/api/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c
index f941f2f752c..9867b596216 100644
--- a/vpp/api/api.c
+++ b/vpp/api/api.c
@@ -929,8 +929,8 @@ static int ip4_add_del_route_t_handler (vl_api_ip_add_del_route_t *mp)
ip_adjacency_t cadj;
memset(&cadj, 0, sizeof(cadj));
cadj.lookup_next_index = IP_LOOKUP_NEXT_CLASSIFY;
- cadj.classify_table_index = ntohl(mp->classify_table_index);
- if (pool_is_free_index (cm->tables, cadj.classify_table_index)) {
+ cadj.classify.table_index = ntohl(mp->classify_table_index);
+ if (pool_is_free_index (cm->tables, cadj.classify.table_index)) {
dsunlock(sm);
return VNET_API_ERROR_NO_SUCH_TABLE;
}