1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) 2022 NVIDIA Corporation & Affiliates 3 */ 4 5 #ifndef COMMON_H 6 #define COMMON_H 7 8 #define QUEUE_ID 1 9 10 extern struct rte_flow_attr attr; 11 extern struct rte_flow_op_attr ops_attr; 12 13 /** 14 * Skeleton for creation of a flow rule using template and non template API. 15 * 16 * @param port_id 17 * The selected port. 18 * @param[out] error 19 * Perform verbose error reporting if not NULL. 20 * @param[out] flow_template 21 * The selected API to use. 22 * @return 23 * A flow if the rule could be created else return NULL. 24 */ 25 struct rte_flow * 26 generate_flow_skeleton(uint16_t port_id, struct rte_flow_error *error, int use_template_api); 27 28 #endif /* COMMON_H */ 29