net: ethtool: Add destination MAC address to flow steering API
[deliverable/linux.git] / drivers / net / tun.c
index a1b2389e6d7fdacce6abb7b3b1ed7d24a2029d05..2ac2164a1e39bd70b0a046ee6dc7df05b76e1045 100644 (file)
@@ -849,6 +849,7 @@ static void tun_net_init(struct net_device *dev)
                /* Ethernet TAP Device */
                ether_setup(dev);
                dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+               dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
                eth_hw_addr_random(dev);
 
@@ -1591,7 +1592,8 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
 
                tun_net_init(dev);
 
-               if (tun_flow_init(tun))
+               err = tun_flow_init(tun);
+               if (err < 0)
                        goto err_free_dev;
 
                dev->hw_features = NETIF_F_SG | NETIF_F_FRAGLIST |
This page took 0.027198 seconds and 5 git commands to generate.