net: keep name_hlist close to name
authorEric Dumazet <edumazet@google.com>
Mon, 11 Jun 2012 06:36:13 +0000 (06:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 20:11:28 +0000 (13:11 -0700)
commit9136461ab921fd5066ba6a0de08399e2172f4d71
tree0dbbcb9d46f217ce035748b759e42fe519ed4039
parent67da25521066b38911701efa133aaad2238b5530
net: keep name_hlist close to name

__dev_get_by_name() is slow because pm_qos_req has been inserted between
name[] and name_hlist, adding cache misses.

pm_qos_req has nothing to do at the beginning of struct net_device

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h