lib/crc: crc_kunit: Test CRC computation in interrupt contextsTest that if CRCs are computed in task, softirq, and hardirq contextconcurrently, then all results are as expected. Implement this us
lib/crc: crc_kunit: Test CRC computation in interrupt contextsTest that if CRCs are computed in task, softirq, and hardirq contextconcurrently, then all results are as expected. Implement this usingkunit_run_irq_test() which is also used by the lib/crypto/ tests.As with the corresponding lib/crypto/ tests, the purpose of this is totest fallback code paths and to exercise edge cases in thearchitecture's support for in-kernel FPU/SIMD/vector.Remove the code from crc_test() that sometimes disabled interrupts, asthat was just an incomplete attempt to achieve similar test coverage.Link: https://lore.kernel.org/r/20250811182631.376302-3-ebiggers@kernel.orgSigned-off-by: Eric Biggers <ebiggers@kernel.org>
show more ...
lib/crc: Move files into lib/crc/Move all CRC files in lib/ into a subdirectory lib/crc/ to keep themfrom cluttering up the main lib/ directory.Reviewed-by: "Martin K. Petersen" <martin.petersen
lib/crc: Move files into lib/crc/Move all CRC files in lib/ into a subdirectory lib/crc/ to keep themfrom cluttering up the main lib/ directory.Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>Acked-by: Ingo Molnar <mingo@kernel.org>Acked-by: "Jason A. Donenfeld" <Jason@zx2c4.com>Link: https://lore.kernel.org/r/20250607200454.73587-2-ebiggers@kernel.orgSigned-off-by: Eric Biggers <ebiggers@kernel.org>