mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 04:03:46 +00:00
Merge pull request #3789 from mjstapp/dplane_skip_kernel
zebra: support skip-kernel for dataplane updates
This commit is contained in:
commit
f7af9a93e9
@ -1828,6 +1828,14 @@ static int kernel_dplane_process_func(struct zebra_dplane_provider *prov)
|
|||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* A previous provider plugin may have asked to skip the
|
||||||
|
* kernel update.
|
||||||
|
*/
|
||||||
|
if (dplane_ctx_is_skip_kernel(ctx)) {
|
||||||
|
res = ZEBRA_DPLANE_REQUEST_SUCCESS;
|
||||||
|
goto skip_one;
|
||||||
|
}
|
||||||
|
|
||||||
/* Dispatch to appropriate kernel-facing apis */
|
/* Dispatch to appropriate kernel-facing apis */
|
||||||
switch (dplane_ctx_get_op(ctx)) {
|
switch (dplane_ctx_get_op(ctx)) {
|
||||||
|
|
||||||
@ -1857,6 +1865,7 @@ static int kernel_dplane_process_func(struct zebra_dplane_provider *prov)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skip_one:
|
||||||
dplane_ctx_set_status(ctx, res);
|
dplane_ctx_set_status(ctx, res);
|
||||||
|
|
||||||
dplane_provider_enqueue_out_ctx(prov, ctx);
|
dplane_provider_enqueue_out_ctx(prov, ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user