summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2025-11-26 16:48:54 +0800
committerJakub Kicinski <kuba@kernel.org>2025-12-01 13:52:13 -0800
commit6ab578739a4c1f5ae3c5416d9c7339a2f50d83f1 (patch)
tree4d514e64d499dcd27d6970f3107638667c0201d6 /tools/lib/python/kdoc/parse_data_structs.py
parent56435627d90f252017237fa66a9fa081b11113f9 (diff)
net: mctp: test: move TX packetqueue from dst to dev
To capture TX packets during a test, we are currently intercepting the dst->output with an implementation that adds the transmitted packet to a skb queue attached to the test-specific mock dst. The netdev itself is not involved in the test TX path. Instead, we can just use our test device to stash TXed packets for later inspection by the test. This means we can include the actual mctp_dst_output() implementation in the test (by setting dst.output in the test case), and don't need to be creating fake dst objects, or their corresponding skb queues. We need to ensure that the netdev is up to allow delivery to ndo_start_xmit, but the tests assume active devices at present anyway. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://patch.msgid.link/20251126-dev-mctp-test-tx-queue-v2-1-4e5bbd1d6c57@codeconstruct.com.au Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions