Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / net / 8021q / vlan_dev.c
index 6e82148..934e221 100644 (file)
@@ -20,6 +20,8 @@
  *             2 of the License, or (at your option) any later version.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/skbuff.h>
@@ -55,7 +57,7 @@ static int vlan_dev_rebuild_header(struct sk_buff *skb)
                return arp_find(veth->h_dest, skb);
 #endif
        default:
-               pr_debug("%s: unable to resolve type %X addresses.\n",
+               pr_debug("%s: unable to resolve type %X addresses\n",
                         dev->name, ntohs(veth->h_vlan_encapsulated_proto));
 
                memcpy(veth->h_source, dev->dev_addr, ETH_ALEN);
@@ -595,8 +597,7 @@ static u32 vlan_dev_fix_features(struct net_device *dev, u32 features)
        features &= real_dev->features;
        features &= real_dev->vlan_features;
 
-       if (old_features & NETIF_F_SOFT_FEATURES)
-               features |= old_features & NETIF_F_SOFT_FEATURES;
+       features |= old_features & NETIF_F_SOFT_FEATURES;
 
        if (dev_ethtool_get_rx_csum(real_dev))
                features |= NETIF_F_RXCSUM;