diff options
| author | Russ White <russ@riw.us> | 2020-11-17 07:27:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 07:27:41 -0500 |
| commit | 7dce3c57c22c7c258613393524268ac12c84f60e (patch) | |
| tree | 15016ac5da759bc2a982d74d41ab32a9a2aba9f0 /zebra/zebra_router.c | |
| parent | 426fe481d72bdf23d3eae8e1aa4323426b7a9d70 (diff) | |
| parent | f7a9d0120dd8306677f0bf417a29d142df03986b (diff) | |
Merge pull request #7518 from donaldsharp/asic_offload_more
Asic offload more
Diffstat (limited to 'zebra/zebra_router.c')
| -rw-r--r-- | zebra/zebra_router.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index fc4390f7f8..249ec38a69 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -257,7 +257,12 @@ void zebra_router_terminate(void) hash_free(zrouter.iptable_hash); } -void zebra_router_init(void) +bool zebra_router_notify_on_ack(void) +{ + return !zrouter.asic_offloaded || zrouter.notify_on_ack; +} + +void zebra_router_init(bool asic_offload, bool notify_on_ack) { zrouter.sequence_num = 0; @@ -291,5 +296,6 @@ void zebra_router_init(void) hash_create_size(8, zebra_nhg_id_key, zebra_nhg_hash_id_equal, "Zebra Router Nexthop Groups ID index"); - zrouter.asic_offloaded = false; + zrouter.asic_offloaded = asic_offload; + zrouter.notify_on_ack = notify_on_ack; } |
