<commit_before>/*   SPDX-License-Identifier:        BSD-3-Clause
 *   Copyright 2017 NXP
 */

#ifndef __DPAA_EVENTDEV_H__
#define __DPAA_EVENTDEV_H__

#include <rte_eventdev_pmd.h>
#include <rte_eventdev_pmd_vdev.h>
#include <rte_atomic.h>
#include <rte_per_lcore.h>

#define EVENTDEV_NAME_DPAA_PMD		event_dpaa1

#define EVENTDEV_DRV_LOG(fmt, args...)	\
		DPAA_EVENTDEV_INFO(fmt, ## args)
#define EVENTDEV_DRV_FUNC_TRACE()	\
		DPAA_EVENTDEV_DEBUG("%s() Called:\n", __func__)
#define EVENTDEV_DRV_ERR(fmt, args...)	\
		DPAA_EVENTDEV_ERR("%s(): " fmt "\n", __func__, ## args)

#define DPAA_EVENT_MAX_PORTS			8
#define DPAA_EVENT_MAX_QUEUES			16
#define DPAA_EVENT_MIN_DEQUEUE_TIMEOUT	1
#define DPAA_EVENT_MAX_DEQUEUE_TIMEOUT	(UINT32_MAX - 1)
#define DPAA_EVENT_MAX_QUEUE_FLOWS		2048
#define DPAA_EVENT_MAX_QUEUE_PRIORITY_LEVELS	8
#define DPAA_EVENT_MAX_EVENT_PRIORITY_LEVELS	0
#define DPAA_EVENT_MAX_EVENT_PORT		RTE_MAX_LCORE<commit_msg>event/dpaa: fix integer overflow of max ports<commit_after>/*   SPDX-License-Identifier:        BSD-3-Clause
 *   Copyright 2017 NXP
 */

#ifndef __DPAA_EVENTDEV_H__
#define __DPAA_EVENTDEV_H__

#include <rte_eventdev_pmd.h>
#include <rte_eventdev_pmd_vdev.h>
#include <rte_atomic.h>
#include <rte_per_lcore.h>

#define EVENTDEV_NAME_DPAA_PMD		event_dpaa1

#define EVENTDEV_DRV_LOG(fmt, args...)	\
		DPAA_EVENTDEV_INFO(fmt, ## args)
#define EVENTDEV_DRV_FUNC_TRACE()	\
		DPAA_EVENTDEV_DEBUG("%s() Called:\n", __func__)
#define EVENTDEV_DRV_ERR(fmt, args...)	\
		DPAA_EVENTDEV_ERR("%s(): " fmt "\n", __func__, ## args)

#define DPAA_EVENT_MAX_PORTS			8
#define DPAA_EVENT_MAX_QUEUES			16
#define DPAA_EVENT_MIN_DEQUEUE_TIMEOUT	1
#define DPAA_EVENT_MAX_DEQUEUE_TIMEOUT	(UINT32_MAX - 1)
#define DPAA_EVENT_MAX_QUEUE_FLOWS		2048
#define DPAA_EVENT_MAX_QUEUE_PRIORITY_LEVELS	8
#define DPAA_EVENT_MAX_EVENT_PRIORITY_LEVELS	0
#define DPAA_EVENT_MAX_EVENT_PORT		RTE_MIN(RTE_MAX_LCORE, INT8_MAX)
{'fraction_non_alphanumeric': 0.09942738157209786, 'fraction_numerical': 0.02030192608016658, 'mean_word_length': 6.420849420849421, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3498817', 'n_tokens_mistral': 863, 'n_tokens_neox': 820, 'n_words': 134}