mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
The kunit test cases for the RTP framework are currently separated into those that validate xe_rtp_process_to_sr() and those that validate xe_rtp_process(). In both of them, we also have mixed stuff to validate rule matching functionality, which should rather be done in a separate test case group. Let's create such a group, specific for validating rule matching, and also add an initial set of cases. In an upcoming change, we will do a cleanup of the other groups by migrating those cases intended for rule matching to this new group. v2: - s/no-yes-or-no-yes/no-yes-or-yes-no/ (Matt) - Drop leftover include of <kunit/test.h>. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patch.msgid.link/20260522-rtp-rule-parser-v3-1-0c51039899f4@intel.com Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
24 lines
434 B
C
24 lines
434 B
C
/* SPDX-License-Identifier: GPL-2.0 AND MIT */
|
|
/*
|
|
* Copyright © 2026 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_RTP_TEST_H_
|
|
#define _XE_RTP_TEST_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_device;
|
|
struct xe_gt;
|
|
struct xe_hw_engine;
|
|
struct xe_rtp_rule;
|
|
|
|
bool xe_rtp_rule_matches(const struct xe_device *xe,
|
|
struct xe_gt *gt,
|
|
struct xe_hw_engine *hwe,
|
|
const struct xe_rtp_rule *rules,
|
|
unsigned int n_rules,
|
|
int *err);
|
|
|
|
#endif
|