2 * SPDX-License-Identifier: Apache-2.0
3 * Copyright(c) 2021 Cisco Systems, Inc.
7 #include <vnet/hash/hash.h>
10 show_hash (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
12 clib_error_t *error = 0;
13 vnet_hash_main_t *hm = &vnet_hash_main;
14 vnet_hash_function_registration_t *hash;
16 hash = hm->hash_registrations;
18 vlib_cli_output (vm, "%-25s%-8s%s", "Name", "Prio", "Description");
21 vlib_cli_output (vm, "%-25s%-8u%s", hash->name, hash->priority,
29 VLIB_CLI_COMMAND (cmd_show_hash, static) = {
31 .short_help = "show hash",
32 .function = show_hash,