]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: Do not return error when setting the same mac address
authorVlad Yasevich <vyasevich@gmail.com>
Wed, 21 Jun 2017 11:59:16 +0000 (07:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:17:41 +0000 (11:17 -0400)
commit393696da238662159a6c2ebed8bcdafb97096a1d
tree2563af55925c20e73e99e5c72bf7edd42a1ae930
parenteac59ba10e24e19ff1a8497604511329b8f8a37d
macvlan: Do not return error when setting the same mac address

The user currently gets an EBUSY error when attempting to set
the mac address on a macvlan device to the same value.

This should really be a no-op as nothing changes.  Catch
the condition and return early.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c