net/tap: fix redirection rule after MAC change
authorPascal Mazon <pascal.mazon@6wind.com>
Fri, 31 Mar 2017 13:54:11 +0000 (15:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:03 +0000 (19:03 +0200)
commit41f0e86033b9cff50e9894737a0a2f978510e2cf
tree22a58cf7529ffcf3073ef4bf278994fd2a0fda8e
parent1b93b12a94ce2a8e94a1b46a64957c1b0ad347ce
net/tap: fix redirection rule after MAC change

This is necessary to ensure packets with the new MAC address as
destination get redirected to the tap device.

Also change the MAC address only if the current one is different from
the requested one.

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