1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2015 Intel Corporation
5 #ifndef __INCLUDE_PIPELINE_FLOW_CLASSIFICATION_BE_H__
6 #define __INCLUDE_PIPELINE_FLOW_CLASSIFICATION_BE_H__
8 #include "pipeline_common_be.h"
10 enum pipeline_fc_msg_req_type {
11 PIPELINE_FC_MSG_REQ_FLOW_ADD = 0,
12 PIPELINE_FC_MSG_REQ_FLOW_ADD_BULK,
13 PIPELINE_FC_MSG_REQ_FLOW_DEL,
14 PIPELINE_FC_MSG_REQ_FLOW_ADD_DEFAULT,
15 PIPELINE_FC_MSG_REQ_FLOW_DEL_DEFAULT,
19 #ifndef PIPELINE_FC_FLOW_KEY_MAX_SIZE
20 #define PIPELINE_FC_FLOW_KEY_MAX_SIZE 64
26 struct pipeline_fc_add_msg_req {
27 enum pipeline_msg_req_type type;
28 enum pipeline_fc_msg_req_type subtype;
30 uint8_t key[PIPELINE_FC_FLOW_KEY_MAX_SIZE];
36 struct pipeline_fc_add_msg_rsp {
45 struct pipeline_fc_add_bulk_flow_req {
46 uint8_t key[PIPELINE_FC_FLOW_KEY_MAX_SIZE];
51 struct pipeline_fc_add_bulk_flow_rsp {
56 struct pipeline_fc_add_bulk_msg_req {
57 enum pipeline_msg_req_type type;
58 enum pipeline_fc_msg_req_type subtype;
60 struct pipeline_fc_add_bulk_flow_req *req;
61 struct pipeline_fc_add_bulk_flow_rsp *rsp;
65 struct pipeline_fc_add_bulk_msg_rsp {
72 struct pipeline_fc_del_msg_req {
73 enum pipeline_msg_req_type type;
74 enum pipeline_fc_msg_req_type subtype;
76 uint8_t key[PIPELINE_FC_FLOW_KEY_MAX_SIZE];
79 struct pipeline_fc_del_msg_rsp {
87 struct pipeline_fc_add_default_msg_req {
88 enum pipeline_msg_req_type type;
89 enum pipeline_fc_msg_req_type subtype;
94 struct pipeline_fc_add_default_msg_rsp {
102 struct pipeline_fc_del_default_msg_req {
103 enum pipeline_msg_req_type type;
104 enum pipeline_fc_msg_req_type subtype;
107 struct pipeline_fc_del_default_msg_rsp {
111 extern struct pipeline_be_ops pipeline_flow_classification_be_ops;