|
7 | 7 |
|
8 | 8 | #include <rte_log.h>
|
9 | 9 |
|
| 10 | +RTE_LOG_REGISTER_DEFAULT(ipfrag_logtype, INFO); |
| 11 | + |
10 | 12 | #include "ip_frag_common.h"
|
11 | 13 |
|
12 | 14 | #define IP_FRAG_HASH_FNUM 2
|
@@ -52,20 +54,20 @@ rte_ip_frag_table_create(uint32_t bucket_num, uint32_t bucket_entries,
|
52 | 54 | if (rte_is_power_of_2(bucket_entries) == 0 ||
|
53 | 55 | nb_entries > UINT32_MAX || nb_entries == 0 ||
|
54 | 56 | nb_entries < max_entries) {
|
55 |
| - RTE_LOG(ERR, USER1, "%s: invalid input parameter\n", __func__); |
| 57 | + RTE_LOG(ERR, IPFRAG, "%s: invalid input parameter\n", __func__); |
56 | 58 | return NULL;
|
57 | 59 | }
|
58 | 60 |
|
59 | 61 | sz = sizeof (*tbl) + nb_entries * sizeof (tbl->pkt[0]);
|
60 | 62 | if ((tbl = rte_zmalloc_socket(__func__, sz, RTE_CACHE_LINE_SIZE,
|
61 | 63 | socket_id)) == NULL) {
|
62 |
| - RTE_LOG(ERR, USER1, |
| 64 | + RTE_LOG(ERR, IPFRAG, |
63 | 65 | "%s: allocation of %zu bytes at socket %d failed do\n",
|
64 | 66 | __func__, sz, socket_id);
|
65 | 67 | return NULL;
|
66 | 68 | }
|
67 | 69 |
|
68 |
| - RTE_LOG(INFO, USER1, "%s: allocated of %zu bytes at socket %d\n", |
| 70 | + RTE_LOG(INFO, IPFRAG, "%s: allocated of %zu bytes at socket %d\n", |
69 | 71 | __func__, sz, socket_id);
|
70 | 72 |
|
71 | 73 | tbl->max_cycles = max_cycles;
|
|
0 commit comments