aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/reass
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-12-11 13:06:27 +0000
committerDave Barach <openvpp@barachs.net>2019-12-13 14:08:19 +0000
commit407f593dc0d06453f0b5c124b3a48edd52da6704 (patch)
tree55ecf9b6d4c5bcb1ddb0fc4346f4af406afcac31 /src/vnet/ip/reass
parent4c6b1b6da5d884c80363aeba75bc318a06e29031 (diff)
ip: SVR: fix wrong return value
Type: fix Change-Id: I9498b660bf2045bb6aac96d19bb9456a14b35847 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/ip/reass')
-rw-r--r--src/vnet/ip/reass/ip4_sv_reass.c2
-rw-r--r--src/vnet/ip/reass/ip6_sv_reass.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/reass/ip4_sv_reass.c b/src/vnet/ip/reass/ip4_sv_reass.c
index 91a50036b4f..a926f2adf10 100644
--- a/src/vnet/ip/reass/ip4_sv_reass.c
+++ b/src/vnet/ip/reass/ip4_sv_reass.c
@@ -1182,7 +1182,7 @@ ip4_sv_reass_enable_disable_with_refcnt (u32 sw_if_index, int is_enable)
"ip4-sv-reassembly-feature",
sw_if_index, 0, 0, 0);
}
- return -1;
+ return 0;
}
uword
diff --git a/src/vnet/ip/reass/ip6_sv_reass.c b/src/vnet/ip/reass/ip6_sv_reass.c
index 9601cc3b8db..5531d0b3dc4 100644
--- a/src/vnet/ip/reass/ip6_sv_reass.c
+++ b/src/vnet/ip/reass/ip6_sv_reass.c
@@ -1288,7 +1288,7 @@ ip6_sv_reass_enable_disable_with_refcnt (u32 sw_if_index, int is_enable)
"ip6-sv-reassembly-feature",
sw_if_index, 0, 0, 0);
}
- return -1;
+ return 0;
}
#endif