pktgen: Fix netdevice unregister
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 24 Nov 2009 22:50:53 +0000 (14:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Nov 2009 22:50:53 +0000 (14:50 -0800)
commit3e9848403ad59c53b31facb30b43ca80135ae0b9
treeec5d47edd7bc85509d3c8b5b593d12a2e05c3969
parent8c2acc53fd7987493f11640e266cf7130591e764
pktgen: Fix netdevice unregister

When multi queue compatable names are used by pktgen (eg eth0@0),
we currently cannot unload a NIC driver if one of its device
is currently in use.

Allow pktgen_find_dev() to find pktgen devices by their suffix (netdev name)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c