From 5b0cb951dc3d9732496cb7d18cd0c9fe5d6375c6 Mon Sep 17 00:00:00 2001 From: Balasubramanian Manoharan Date: Mon, 8 Dec 2014 17:32:56 +0530 Subject: linux-generic: classification initial implementation The following features are implemented in this classification implementation: * Attaches PMR, PMR_SET to a Pktio entry * Adds classifier object to pktio entry * Attaches CoS values for L2 and L3 QoS to a Pktio entry * Selects ClassOfService for a packet based on PMR, L2 QoS and L3 QoS values * Selects a default CoS if packet does not match any of the assigned rules * Selects an Error CoS for an Error packet * Enqueues the packet to the queue associated with the selected CoS Signed-off-by: Balasubramanian Manoharan Reviewed-by: Bill Fischofer Reviewed-by: Ciprian Barbu Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/linux-generic/odp_init.c') diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 672b3d6..c661231 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -54,6 +54,10 @@ int odp_init_global(odp_init_t *params ODP_UNUSED, ODP_ERR("ODP crypto init failed.\n"); return -1; } + if (odp_classification_init_global()) { + ODP_ERR("ODP crypto init failed.\n"); + return -1; + } return 0; } -- cgit v1.2.3