forked from OpenVisualCloud/Media-Transport-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-vf-support-kahawai-runtime-rl-queue.patch
54 lines (45 loc) · 1.5 KB
/
0001-vf-support-kahawai-runtime-rl-queue.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 2c184daed5aff4cffcb825c9fb2d7f2f4ac87fb1 Mon Sep 17 00:00:00 2001
From: "Du, Frank" <[email protected]>
Date: Wed, 3 Aug 2022 10:34:14 +0800
Subject: [PATCH 1/4] vf: support kahawai runtime rl queue
Signed-off-by: Du, Frank <[email protected]>
---
src/ice_virtchnl.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/ice_virtchnl.c b/src/ice_virtchnl.c
index d594b25..696ce12 100644
--- a/src/ice_virtchnl.c
+++ b/src/ice_virtchnl.c
@@ -3643,6 +3643,11 @@ static int ice_vc_cfg_q_bw(struct ice_vf *vf, u8 *msg)
memcpy(vf->qs_bw, qs_bw, len);
+ /* for kahawai runtime rl */
+ if (vf->qs_bw)
+ if (ice_vf_cfg_qs_bw(vf, qbw->num_queues))
+ v_ret = VIRTCHNL_STATUS_ERR_PARAM;
+
err_bw:
kfree(qs_bw);
@@ -3808,11 +3813,12 @@ skip_non_adq_checks:
if (qpi->txq.ring_len > 0) {
vsi->tx_rings[q_idx]->dma = qpi->txq.dma_ring_addr;
vsi->tx_rings[q_idx]->count = qpi->txq.ring_len;
-
+#if 0 /* for kahawai runtime rl */
/* Disable any existing queue first */
if (ice_vf_vsi_dis_single_txq(vf, vsi, q_idx,
qpi->txq.queue_id))
goto error_param;
+#endif
/* Configure a queue with the requested settings */
if (ice_vsi_cfg_single_txq(vsi, vsi->tx_rings, q_idx)) {
@@ -3895,8 +3901,10 @@ skip_non_adq_checks:
}
}
+#if 0 /* for kahawai runtime rl */
if (ice_vf_cfg_qs_bw(vf, qci->num_queue_pairs))
goto error_param;
+#endif
/* send the response to the VF */
return ice_vc_respond_to_vf(vf, VIRTCHNL_OP_CONFIG_VSI_QUEUES,
--
2.34.1