summaryrefslogtreecommitdiffstats
path: root/lib/test_blackhole_dev.c
Commit message (Collapse)AuthorAgeFilesLines
* net: blackhole_dev: fix build warning for ethh set but not usedBreno Leitao2024-02-051-2/+1
| | | | | | | | | | | | | | lib/test_blackhole_dev.c sets a variable that is never read, causing this following building warning: lib/test_blackhole_dev.c:32:17: warning: variable 'ethh' set but not used [-Wunused-but-set-variable] Remove the variable struct ethhdr *ethh, which is unused. Fixes: 509e56b37cc3 ("blackhole_dev: add a selftest") Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* blackhole_dev: add a selftestMahesh Bandewar2019-07-011-0/+100
Since this is not really a device with all capabilities, this test ensures that it has *enough* to make it through the data path without causing unwanted side-effects (read crash!). Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>