]> www.infradead.org Git - users/sagi/libnvme.git/commit
test: move test_peer->rx_fn function to transmit path
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 30 Jun 2022 07:49:12 +0000 (15:49 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 1 Jul 2022 08:44:08 +0000 (16:44 +0800)
commitd311be8d9b3899f2052d5b8d7834e30e7a66687e
tree9b21212f3ea380c3b72cde2018e14e293d9f2418
parente451d1e984b363fab83f28bfd267b5fb909de4d3
test: move test_peer->rx_fn function to transmit path

We currently have the peer->rx_fn called after libnvme has sent data to
the NVMe device, as a way for the test to check the sent data and modify
a response accordingly.

However, for testing More Processing Required responses, we will have
two TXes for a single RX. So, move the rx_fn callback to the TX side
(ie, when libnvme calls recvmsg). This allows the test to provide
TX-specific data for each call.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
test/mi-mctp.c