]> 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)
commit098faac96e418a7413fb3ae93757ab45841bbd96
treee55336a292a07d8e03f5a69b7087512d10dc2247
parent95d7df93d699ad4728eb562e6fa15117777e84f4
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