]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: Allow on loopback device
authorLukas Wunner <lukas@wunner.de>
Tue, 10 Mar 2020 10:49:46 +0000 (11:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 22:44:59 +0000 (15:44 -0700)
commitf9d22ee3cb558f1fa17a15c14b29534f6f077ece
treee55336a292a07d8e03f5a69b7087512d10dc2247
parent6ea0d4704a11b68918a3bf46d10f1c9c03a7ed32
pktgen: Allow on loopback device

When pktgen is used to measure the performance of dev_queue_xmit()
packet handling in the core, it is preferable to not hand down
packets to a low-level Ethernet driver as it would distort the
measurements.

Allow using pktgen on the loopback device, thus constraining
measurements to core code.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c