perf jevents: Silence warning for ArchStd files
[linux-2.6-microblaze.git] / net / dsa / tag_mtk.c
index 5974848..f9b2966 100644 (file)
@@ -24,9 +24,6 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb,
        struct dsa_port *dp = dsa_slave_to_port(dev);
        u8 xmit_tpid;
        u8 *mtk_tag;
-       unsigned char *dest = eth_hdr(skb)->h_dest;
-       bool is_multicast_skb = is_multicast_ether_addr(dest) &&
-                               !is_broadcast_ether_addr(dest);
 
        /* Build the special tag after the MAC Source Address. If VLAN header
         * is present, it's required that VLAN header and special tag is
@@ -55,10 +52,6 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb,
        mtk_tag[0] = xmit_tpid;
        mtk_tag[1] = (1 << dp->index) & MTK_HDR_XMIT_DP_BIT_MASK;
 
-       /* Disable SA learning for multicast frames */
-       if (unlikely(is_multicast_skb))
-               mtk_tag[1] |= MTK_HDR_XMIT_SA_DIS;
-
        /* Tag control information is kept for 802.1Q */
        if (xmit_tpid == MTK_HDR_XMIT_UNTAGGED) {
                mtk_tag[2] = 0;
@@ -74,9 +67,6 @@ static struct sk_buff *mtk_tag_rcv(struct sk_buff *skb, struct net_device *dev,
        u16 hdr;
        int port;
        __be16 *phdr;
-       unsigned char *dest = eth_hdr(skb)->h_dest;
-       bool is_multicast_skb = is_multicast_ether_addr(dest) &&
-                               !is_broadcast_ether_addr(dest);
 
        if (unlikely(!pskb_may_pull(skb, MTK_HDR_LEN)))
                return NULL;
@@ -102,9 +92,7 @@ static struct sk_buff *mtk_tag_rcv(struct sk_buff *skb, struct net_device *dev,
        if (!skb->dev)
                return NULL;
 
-       /* Only unicast or broadcast frames are offloaded */
-       if (likely(!is_multicast_skb))
-               skb->offload_fwd_mark = 1;
+       skb->offload_fwd_mark = 1;
 
        return skb;
 }