]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: allow setting mac address of loopback device
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 12 Feb 2014 01:21:26 +0000 (17:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:46:49 +0000 (17:46 -0500)
commit25f929fbff0d1bcebf2e92656d33025cd330cbf8
tree20263225506bf0be6faaad37627cb062df478c65
parent0e42aa4fb0b6a2dc1aadbfca7a0457ee484fe6f9
net: allow setting mac address of loopback device

We are trying to mirror the local traffic from lo to eth0,
allowing setting mac address of lo to eth0 would make
the ether addresses in these packets correct, so that
we don't have to modify the ether header again.

Since usually no one cares about its mac address (all-zero),
it is safe to allow those who care to set its mac address.

Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Eric Dumazet <edumazet@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c