net/tap: do not set remote MAC if not necessary
authorPascal Mazon <pascal.mazon@6wind.com>
Fri, 12 May 2017 13:01:40 +0000 (15:01 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:25 +0000 (10:41 +0100)
commit460bf26fd8904f985698d0c7d01c74b4053359c9
tree3ec7c33571b851c45c4361a177f0e397bf350857
parentbf7b7f437b49d8742ca31e5bc25867838d90eea7
net/tap: do not set remote MAC if not necessary

Check for the current MAC address on both the remote and the tap
netdevices before setting a new value.

While there, remove wrong empty lines and ensure tap_ioctl() return
value is negative, just like what is done throughout this code.

Fixes: 2bc06869cd94 ("net/tap: add remote netdevice traffic capture")

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/rte_eth_tap.c