From 7298f42ce7519a575daa9ee50756bc6c6bf0e118 Mon Sep 17 00:00:00 2001 From: Eileen Yoon Date: Tue, 23 Jan 2024 23:26:30 +0900 Subject: [PATCH] hv/trace_aop: Handle afk/epic API breakage Signed-off-by: Eileen Yoon --- proxyclient/hv/trace_aop.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxyclient/hv/trace_aop.py b/proxyclient/hv/trace_aop.py index 489c9b34..1d0e8bef 100644 --- a/proxyclient/hv/trace_aop.py +++ b/proxyclient/hv/trace_aop.py @@ -108,15 +108,15 @@ class AFKEp(EP): @msg(0x8a, DIR.RX, AFKEP_InitRB) def InitTX(self, msg): - off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE - size = msg.SIZE * AFKRingBuf.BLOCK_SIZE + off = msg.OFFSET * AFKRingBuf.BLOCK_STEP + size = msg.SIZE * AFKRingBuf.BLOCK_STEP self.state.txbuf_info = (off, size) self.create_bufs() @msg(0x8b, DIR.RX, AFKEP_InitRB) def InitRX(self, msg): - off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE - size = msg.SIZE * AFKRingBuf.BLOCK_SIZE + off = msg.OFFSET * AFKRingBuf.BLOCK_STEP + size = msg.SIZE * AFKRingBuf.BLOCK_STEP self.state.rxbuf_info = (off, size) self.create_bufs()