]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/if_vlan.h
[RTNETLINK]: Add rtnl_put_cacheinfo() to unify some code
[linux-2.6-omap-h63xx.git] / include / linux / if_vlan.h
index 383627ad328f383bfe07f78ddc77e09e37066d95..35cb385735837a2e5b0eca166770bcc647c41fd9 100644 (file)
@@ -44,7 +44,7 @@ struct vlan_ethhdr {
    unsigned char       h_source[ETH_ALEN];        /* source ether addr */
    __be16               h_vlan_proto;              /* Should always be 0x8100 */
    __be16               h_vlan_TCI;                /* Encapsulates priority and VLAN ID */
-   unsigned short      h_vlan_encapsulated_proto; /* packet type ID field (or len) */
+   __be16              h_vlan_encapsulated_proto; /* packet type ID field (or len) */
 };
 
 #include <linux/skbuff.h>
@@ -155,6 +155,11 @@ static inline int __vlan_hwaccel_rx(struct sk_buff *skb,
 {
        struct net_device_stats *stats;
 
+       if (skb_bond_should_drop(skb)) {
+               dev_kfree_skb_any(skb);
+               return NET_RX_DROP;
+       }
+
        skb->dev = grp->vlan_devices[vlan_tag & VLAN_VID_MASK];
        if (skb->dev == NULL) {
                dev_kfree_skb_any(skb);