net: replace uses of __constant_{endian}
[deliverable/linux.git] / net / dsa / tag_trailer.c
index efd26697e716a22b6fb8713a5285b88a20fab2ab..d7e7f424ff0c4a09c6bccb8cdff5fbbe556e687e 100644 (file)
@@ -98,7 +98,6 @@ static int trailer_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;
 
@@ -113,7 +112,7 @@ out:
 }
 
 static struct packet_type trailer_packet_type = {
-       .type   = __constant_htons(ETH_P_TRAILER),
+       .type   = cpu_to_be16(ETH_P_TRAILER),
        .func   = trailer_rcv,
 };
 
This page took 0.027225 seconds and 5 git commands to generate.