All of lore.kernel.org
 help / color / mirror / Atom feed
* - allow-pktgen-to-work-with-loopback-devices.patch removed from -mm tree
@ 2007-03-23  6:52 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-03-23  6:52 UTC (permalink / raw)
  To: josh, mm-commits


The patch titled
     Allow pktgen to work with loopback devices.
has been removed from the -mm tree.  Its filename was
     allow-pktgen-to-work-with-loopback-devices.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: Allow pktgen to work with loopback devices.
From: Josh Triplett <josh@freedesktop.org>

pktgen currently only works on network devices with type ARPHRD_ETHER.  Add
support for the loopback device, type ARPHRD_LOOPBACK.

I've tested this on my system, using a modified pktgen.conf-1-1 with
s/eth1/lo/g, and it works fine; the network device statistics confirm
packet transmission and receipt.

Thanks to Sarah Bailey for discovering and tracking down the problem.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 net/core/pktgen.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN net/core/pktgen.c~allow-pktgen-to-work-with-loopback-devices net/core/pktgen.c
--- a/net/core/pktgen.c~allow-pktgen-to-work-with-loopback-devices
+++ a/net/core/pktgen.c
@@ -1929,7 +1929,7 @@ static int pktgen_setup_dev(struct pktge
 		return -ENODEV;
 	}
 
-	if (odev->type != ARPHRD_ETHER) {
+	if (odev->type != ARPHRD_LOOPBACK && odev->type != ARPHRD_ETHER) {
 		printk("pktgen: not an ethernet device: \"%s\"\n", ifname);
 		err = -EINVAL;
 	} else if (!netif_running(odev)) {
_

Patches currently in -mm which might be from josh@freedesktop.org are

allow-pktgen-to-work-with-loopback-devices.patch
rcutorture-mark-rcu_torture_init-as-__init.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-23  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23  6:52 - allow-pktgen-to-work-with-loopback-devices.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.