pktgen: add pktgen_handle_all_threads() for the same code
authorYejune Deng <yejune.deng@gmail.com>
Mon, 7 Jun 2021 02:37:41 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 20:15:31 +0000 (13:15 -0700)
commitcda9de0b8daf2ebfc07d385ef0039fd7860ddf25
tree3f256ec34fa161fb60575ecb6e22758f8c3809d9
parent85eb1389458d134bdb75dad502cc026c3753a619
pktgen: add pktgen_handle_all_threads() for the same code

The pktgen_{run, reset, stop}_all_threads() has the same code,
so add pktgen_handle_all_threads() for it.

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c