mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
zebra: Add basic knowledge of asic offload available
Some linux kernels are starting to support the idea of knowledge about the underlying asic. Add a boolean that we can set/unset to track whether or not we think the router has this functionality available. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6da3af60a2
commit
4c56ce1cea
@ -290,4 +290,6 @@ void zebra_router_init(void)
|
||||
zrouter.nhgs_id =
|
||||
hash_create_size(8, zebra_nhg_id_key, zebra_nhg_hash_id_equal,
|
||||
"Zebra Router Nexthop Groups ID index");
|
||||
|
||||
zrouter.asic_offloaded = false;
|
||||
}
|
||||
|
@ -182,6 +182,11 @@ struct zebra_router {
|
||||
*/
|
||||
struct hash *nhgs;
|
||||
struct hash *nhgs_id;
|
||||
|
||||
/*
|
||||
* Does the underlying system provide an asic offload
|
||||
*/
|
||||
bool asic_offloaded;
|
||||
};
|
||||
|
||||
#define GRACEFUL_RESTART_TIME 60
|
||||
|
@ -3414,6 +3414,9 @@ DEFUN (show_zebra,
|
||||
{
|
||||
struct vrf *vrf;
|
||||
|
||||
if (zrouter.asic_offloaded)
|
||||
vty_out(vty, "Asic Offload is being used\n");
|
||||
|
||||
vty_out(vty,
|
||||
" Route Route Neighbor LSP LSP\n");
|
||||
vty_out(vty,
|
||||
|
Loading…
Reference in New Issue
Block a user