]> git.baikalelectronics.ru Git - kernel.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)
commit90bf6fcae3d8c51d76e9a450b8c82db32890b3d0
tree20263225506bf0be6faaad37627cb062df478c65
parentb05a81a64da30554c4bf59d1bc18e60e064e6f34
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