diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-08-10 16:32:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 16:32:12 +0300 |
| commit | 03efa836c6f778173849724a14f48ad6a41b834f (patch) | |
| tree | 5dbb6f2a636dd2ebf0728e4e826ec199d9faec5f /zebra/zapi_msg.c | |
| parent | 9ad7e387be7d4745e8c12ab7ae73934d141828f8 (diff) | |
| parent | 1548fbbc449583c6db859982d86fa2d30e6f66a4 (diff) | |
Merge pull request #11774 from donaldsharp/zebra_meta_q_shakeups
Zebra meta q shakeups
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 9895943016..a578395ef8 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -2492,7 +2492,6 @@ static void zread_mpls_labels_add(ZAPI_HANDLER_ARGS) { struct stream *s; struct zapi_labels zl; - int ret; /* Get input stream. */ s = msg; @@ -2510,12 +2509,7 @@ static void zread_mpls_labels_add(ZAPI_HANDLER_ARGS) if (zapi_labels_validate(&zl) < 0) return; - ret = mpls_zapi_labels_process(true, zvrf, &zl); - if (ret < 0) { - if (IS_ZEBRA_DEBUG_RECV) - zlog_debug("%s: Error processing zapi request", - __func__); - } + mpls_zapi_labels_process(true, zvrf, &zl); } /* @@ -2532,7 +2526,6 @@ static void zread_mpls_labels_delete(ZAPI_HANDLER_ARGS) { struct stream *s; struct zapi_labels zl; - int ret; /* Get input stream. */ s = msg; @@ -2547,12 +2540,7 @@ static void zread_mpls_labels_delete(ZAPI_HANDLER_ARGS) return; if (zl.nexthop_num > 0) { - ret = mpls_zapi_labels_process(false /*delete*/, zvrf, &zl); - if (ret < 0) { - if (IS_ZEBRA_DEBUG_RECV) - zlog_debug("%s: Error processing zapi request", - __func__); - } + mpls_zapi_labels_process(false /*delete*/, zvrf, &zl); } else { mpls_lsp_uninstall_all_vrf(zvrf, zl.type, zl.local_label); |
