]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: selftests: switch to using defer() for cleanup
authorDavid Wei <dw@davidwei.uk>
Fri, 25 Apr 2025 02:20:47 +0000 (19:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Apr 2025 01:44:09 +0000 (18:44 -0700)
commit43fd0054f3569d8063b2a5b6a3987031cd0d36f6
tree6f8a063ef22cd58a6c67aaadcc17a767ad0345aa
parent4acf6d4f6afc3478753e49c495132619667549d9
io_uring/zcrx: selftests: switch to using defer() for cleanup

Switch to using defer() for putting the NIC back to the original state
prior to running the selftest.

Signed-off-by: David Wei <dw@davidwei.uk>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250425022049.3474590-2-dw@davidwei.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/iou-zcrx.py