TAPI for RTE MEMPOOL API remote calls

Overview

// global functions

rpc_rte_mempool_p rpc_rte_mempool_lookup(rcf_rpc_server* rpcs, const char* name);
unsigned int rpc_rte_mempool_in_use_count(rcf_rpc_server* rpcs, rpc_rte_mempool_p mp);
void rpc_rte_mempool_free(rcf_rpc_server* rpcs, rpc_rte_mempool_p mp);
void rpc_rte_mempool_free_all(rcf_rpc_server* rpcs);

Detailed Documentation

Global Functions

rpc_rte_mempool_p rpc_rte_mempool_lookup(rcf_rpc_server* rpcs, const char* name)

rte_mempool_lookup() RPC

Parameters:

name

RTE mempool name

Returns:

RTE mempool pointer on success; jumps out when pointer is NULL

unsigned int rpc_rte_mempool_in_use_count(rcf_rpc_server* rpcs, rpc_rte_mempool_p mp)

rte_mempool_in_use_count() RPC

Parameters:

mp

RTE mempool pointer

Returns:

The number of elements which have been allocated from the mempool

void rpc_rte_mempool_free(rcf_rpc_server* rpcs, rpc_rte_mempool_p mp)

rte_mempool_free() RPC

Parameters:

mp

Mempool to be freed

void rpc_rte_mempool_free_all(rcf_rpc_server* rpcs)

rte_mempool_free_all() RPC The function destroys ALL mempools by means of rte_mempool_walk() usage at RPC server side