git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbuf: remove rte_ctrlmbuf
[dpdk.git]
/
app
/
test
/
test_table_acl.c
diff --git
a/app/test/test_table_acl.c
b/app/test/test_table_acl.c
index
afc234a
..
dda0570
100644
(file)
--- a/
app/test/test_table_acl.c
+++ b/
app/test/test_table_acl.c
@@
-31,8
+31,6
@@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef RTE_LIBRTE_ACL
-
#include <rte_hexdump.h>
#include "test_table.h"
#include "test_table_acl.h"
#include <rte_hexdump.h>
#include "test_table.h"
#include "test_table_acl.h"
@@
-42,8
+40,6
@@
(((c) & 0xff) << 8) | \
((d) & 0xff))
(((c) & 0xff) << 8) | \
((d) & 0xff))
-static const char cb_port_delim[] = ":";
-
/*
* Rule and trace formats definitions.
**/
/*
* Rule and trace formats definitions.
**/
@@
-366,7
+362,7
@@
setup_acl_pipeline(void)
acl_params.n_rules = 1 << 5;
acl_params.n_rule_fields = DIM(ipv4_defs);
acl_params.n_rules = 1 << 5;
acl_params.n_rule_fields = DIM(ipv4_defs);
-
rte_
snprintf(acl_name, sizeof(acl_name), "ACL%d", i);
+ snprintf(acl_name, sizeof(acl_name), "ACL%d", i);
acl_params.name = acl_name;
memcpy(acl_params.field_format, ipv4_defs, sizeof(ipv4_defs));
acl_params.name = acl_name;
memcpy(acl_params.field_format, ipv4_defs, sizeof(ipv4_defs));
@@
-410,7
+406,7
@@
setup_acl_pipeline(void)
parser = parse_cb_ipv4_rule;
for (n = 1; n <= 5; n++) {
parser = parse_cb_ipv4_rule;
for (n = 1; n <= 5; n++) {
-
rte_
snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
@@
-436,7
+432,7
@@
setup_acl_pipeline(void)
/* delete a few rules */
for (n = 2; n <= 3; n++) {
/* delete a few rules */
for (n = 2; n <= 3; n++) {
-
rte_
snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
@@
-463,7
+459,7
@@
setup_acl_pipeline(void)
/* Try to add duplicates */
for (n = 1; n <= 5; n++) {
/* Try to add duplicates */
for (n = 1; n <= 5; n++) {
-
rte_
snprintf(line, sizeof(line), "%s", lines[n-1]);
+ snprintf(line, sizeof(line), "%s", lines[n-1]);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
printf("PARSING [%s]\n", line);
ret = parser(line, &rule_params);
@@
-589,5
+585,3
@@
test_table_ACL(void)
return 0;
}
return 0;
}
-
-#endif