summaryrefslogtreecommitdiff
path: root/examples/l3fwd-acl
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2015-09-01 16:57:31 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-09-03 19:22:48 +0200
commit0b6fbe8749d260724c1e8c0e718d0afc2a0b7f65 (patch)
tree29b43db4e70c8264777e15bf9fd22b32725f255a /examples/l3fwd-acl
parent4d0a3f2a93f34b2840a1331cea39f6e0f49f74ff (diff)
downloaddpdk-0b6fbe8749d260724c1e8c0e718d0afc2a0b7f65.zip
dpdk-0b6fbe8749d260724c1e8c0e718d0afc2a0b7f65.tar.gz
dpdk-0b6fbe8749d260724c1e8c0e718d0afc2a0b7f65.tar.xz
acl: remove old API
The functions and structures are moved to app/test in order to keep existing unit tests. Some minor changes were done in these functions because of library scope restrictions. An enum is also copied in two other applications to keep existing code. 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> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'examples/l3fwd-acl')
-rw-r--r--examples/l3fwd-acl/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c
index f612671..f676d14 100644
--- a/examples/l3fwd-acl/main.c
+++ b/examples/l3fwd-acl/main.c
@@ -261,6 +261,23 @@ enum {
NUM_FIELDS_IPV4
};
+/*
+ * That effectively defines order of IPV4VLAN classifications:
+ * - PROTO
+ * - VLAN (TAG and DOMAIN)
+ * - SRC IP ADDRESS
+ * - DST IP ADDRESS
+ * - PORTS (SRC and DST)
+ */
+enum {
+ RTE_ACL_IPV4VLAN_PROTO,
+ RTE_ACL_IPV4VLAN_VLAN,
+ RTE_ACL_IPV4VLAN_SRC,
+ RTE_ACL_IPV4VLAN_DST,
+ RTE_ACL_IPV4VLAN_PORTS,
+ RTE_ACL_IPV4VLAN_NUM
+};
+
struct rte_acl_field_def ipv4_defs[NUM_FIELDS_IPV4] = {
{
.type = RTE_ACL_FIELD_TYPE_BITMASK,