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)
commit1e09e5818b3a07ee824addf0d048df3797de687e
treee55336a292a07d8e03f5a69b7087512d10dc2247
parent62751b6808ec6bdc7622849815943cbc7377262a
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