net: replace uses of __constant_{endian}
[deliverable/linux.git] / net / dsa / tag_dsa.c
index 31866543332ea4c130d47eb9f6539cf5f0f11d94..63e532a69fdb1186077d0cc6dd658f276ec59565 100644 (file)
@@ -162,7 +162,6 @@ static int dsa_rcv(struct sk_buff *skb, struct net_device *dev,
        skb->pkt_type = PACKET_HOST;
        skb->protocol = eth_type_trans(skb, skb->dev);
 
-       skb->dev->last_rx = jiffies;
        skb->dev->stats.rx_packets++;
        skb->dev->stats.rx_bytes += skb->len;
 
@@ -177,7 +176,7 @@ out:
 }
 
 static struct packet_type dsa_packet_type = {
-       .type   = __constant_htons(ETH_P_DSA),
+       .type   = cpu_to_be16(ETH_P_DSA),
        .func   = dsa_rcv,
 };
 
This page took 0.029314 seconds and 5 git commands to generate.