lpm: remove deprecated field
The library version is incremented. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
5eaef15c19
commit
4d0a3f2a93
@ -366,7 +366,7 @@ lpm_create_free(__attribute__((unused)) void *arg)
|
||||
|
||||
/* create the same lpm simultaneously on all threads */
|
||||
for (i = 0; i < MAX_ITER_TIMES; i++) {
|
||||
lpm = rte_lpm_create("fr_test_once", SOCKET_ID_ANY, 4, RTE_LPM_HEAP);
|
||||
lpm = rte_lpm_create("fr_test_once", SOCKET_ID_ANY, 4, 0);
|
||||
if ((NULL == lpm) && (rte_lpm_find_existing("fr_test_once") == NULL))
|
||||
return -1;
|
||||
}
|
||||
@ -374,7 +374,7 @@ lpm_create_free(__attribute__((unused)) void *arg)
|
||||
/* create mutiple fbk tables simultaneously */
|
||||
for (i = 0; i < MAX_LPM_ITER_TIMES; i++) {
|
||||
snprintf(lpm_name, sizeof(lpm_name), "fr_test_%d_%d", lcore_self, i);
|
||||
lpm = rte_lpm_create(lpm_name, SOCKET_ID_ANY, 4, RTE_LPM_HEAP);
|
||||
lpm = rte_lpm_create(lpm_name, SOCKET_ID_ANY, 4, 0);
|
||||
if (NULL == lpm)
|
||||
return -1;
|
||||
|
||||
|
@ -165,7 +165,7 @@ test2(void)
|
||||
{
|
||||
struct rte_lpm *lpm = NULL;
|
||||
|
||||
lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, MAX_RULES, RTE_LPM_HEAP);
|
||||
lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, MAX_RULES, 0);
|
||||
TEST_LPM_ASSERT(lpm != NULL);
|
||||
|
||||
rte_lpm_free(lpm);
|
||||
@ -607,7 +607,7 @@ test10(void)
|
||||
|
||||
/* Add rule that covers a TBL24 range previously invalid & lookup
|
||||
* (& delete & lookup) */
|
||||
lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, MAX_RULES, RTE_LPM_HEAP);
|
||||
lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, MAX_RULES, 0);
|
||||
TEST_LPM_ASSERT(lpm != NULL);
|
||||
|
||||
ip = IPv4(128, 0, 0, 0);
|
||||
|
@ -18,9 +18,6 @@ Deprecation Notices
|
||||
|
||||
* The function rte_jhash2 is deprecated and should be removed.
|
||||
|
||||
* The field mem_location of the rte_lpm structure is deprecated and should be
|
||||
removed as well as the macros RTE_LPM_HEAP and RTE_LPM_MEMZONE.
|
||||
|
||||
* The following fields have been deprecated in rte_eth_stats:
|
||||
imissed, ibadcrc, ibadlen, imcasts, fdirmatch, fdirmiss,
|
||||
tx_pause_xon, rx_pause_xon, tx_pause_xoff, rx_pause_xoff
|
||||
|
@ -34,6 +34,8 @@ ABI Changes
|
||||
|
||||
* The dummy malloc library is removed. The content was moved into EAL in 2.1.
|
||||
|
||||
* The LPM structure is changed. The deprecated field mem_location is removed.
|
||||
|
||||
|
||||
Shared Library Versions
|
||||
-----------------------
|
||||
@ -54,7 +56,7 @@ The libraries prepended with a plus sign were incremented in this version.
|
||||
librte_jobstats.so.1
|
||||
librte_kni.so.1
|
||||
librte_kvargs.so.1
|
||||
librte_lpm.so.1
|
||||
+ librte_lpm.so.2
|
||||
+ librte_mbuf.so.2
|
||||
librte_mempool.so.1
|
||||
librte_meter.so.1
|
||||
|
@ -39,7 +39,7 @@ CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
|
||||
|
||||
EXPORT_MAP := rte_lpm_version.map
|
||||
|
||||
LIBABIVER := 1
|
||||
LIBABIVER := 2
|
||||
|
||||
# all source are stored in SRCS-y
|
||||
SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
|
||||
|
@ -56,16 +56,6 @@ extern "C" {
|
||||
/** Max number of characters in LPM name. */
|
||||
#define RTE_LPM_NAMESIZE 32
|
||||
|
||||
/** @deprecated Possible location to allocate memory. This was for last
|
||||
* parameter of rte_lpm_create(), but is now redundant. The LPM table is always
|
||||
* allocated in memory using librte_malloc which uses a memzone. */
|
||||
#define RTE_LPM_HEAP 0
|
||||
|
||||
/** @deprecated Possible location to allocate memory. This was for last
|
||||
* parameter of rte_lpm_create(), but is now redundant. The LPM table is always
|
||||
* allocated in memory using librte_malloc which uses a memzone. */
|
||||
#define RTE_LPM_MEMZONE 1
|
||||
|
||||
/** Maximum depth value possible for IPv4 LPM. */
|
||||
#define RTE_LPM_MAX_DEPTH 32
|
||||
|
||||
@ -154,7 +144,6 @@ struct rte_lpm_rule_info {
|
||||
struct rte_lpm {
|
||||
/* LPM metadata. */
|
||||
char name[RTE_LPM_NAMESIZE]; /**< Name of the lpm. */
|
||||
int mem_location; /**< @deprecated @see RTE_LPM_HEAP and RTE_LPM_MEMZONE. */
|
||||
uint32_t max_rules; /**< Max. balanced rules per lpm. */
|
||||
struct rte_lpm_rule_info rule_info[RTE_LPM_MAX_DEPTH]; /**< Rule info table. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user