![]() |
CAM API Documentation
|
Public API of the TCAM.
#include "cam.h"Functions | |
| int | tcam_create (const cam_arg_t *cam_arg, struct tcam **out_tcam) |
| int | tcam_insert (struct tcam *tcam, const uint8_t key[], const uint8_t mask[], uint32_t prio, const uint8_t response[]) |
| int | tcam_update (struct tcam *tcam, const uint8_t key[], const uint8_t mask[], const uint8_t response[]) |
| int | tcam_get_by_response (struct tcam *tcam, const uint8_t response[], const uint8_t response_mask[], uint32_t *pos, uint8_t out_key[], uint8_t out_mask[]) |
| int | tcam_get_by_key (struct tcam *tcam, const uint8_t key[], const uint8_t mask[], uint32_t *prio, uint8_t response[]) |
| int | tcam_lookup (struct tcam *tcam, const uint8_t key[], uint8_t response[]) |
| int | tcam_delete_all (struct tcam *tcam) |
| int | tcam_delete (struct tcam *tcam, const uint8_t key[], const uint8_t mask[]) |
| int | tcam_read_and_clear_ecc_counters (struct tcam *tcam, uint32_t *corrected_single_bit_errors, uint32_t *detected_double_bit_errors) |
| int | tcam_read_and_clear_ecc_addresses (struct tcam *tcam, uint32_t *failing_address_single_bit_error, uint32_t *failing_address_double_bit_error) |
| int | tcam_set_ecc_test (struct tcam *tcam, bool inject_single_bit_errors, bool inject_double_bit_errors) |
| int | tcam_destroy (struct tcam *tcam) |
| int | tcam_get_stats (struct tcam *tcam, uint64_t stats_group, union tcam_stats *stats) |