diff options
Diffstat (limited to 'drivers/net/wan/hdlc_fr.c')
-rw-r--r-- | drivers/net/wan/hdlc_fr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 70e57cebc955..800530101093 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -278,31 +278,31 @@ static int fr_hard_header(struct sk_buff **skb_p, u16 dlci) | |||
278 | struct sk_buff *skb = *skb_p; | 278 | struct sk_buff *skb = *skb_p; |
279 | 279 | ||
280 | switch (skb->protocol) { | 280 | switch (skb->protocol) { |
281 | case __constant_htons(NLPID_CCITT_ANSI_LMI): | 281 | case cpu_to_be16(NLPID_CCITT_ANSI_LMI): |
282 | head_len = 4; | 282 | head_len = 4; |
283 | skb_push(skb, head_len); | 283 | skb_push(skb, head_len); |
284 | skb->data[3] = NLPID_CCITT_ANSI_LMI; | 284 | skb->data[3] = NLPID_CCITT_ANSI_LMI; |
285 | break; | 285 | break; |
286 | 286 | ||
287 | case __constant_htons(NLPID_CISCO_LMI): | 287 | case cpu_to_be16(NLPID_CISCO_LMI): |
288 | head_len = 4; | 288 | head_len = 4; |
289 | skb_push(skb, head_len); | 289 | skb_push(skb, head_len); |
290 | skb->data[3] = NLPID_CISCO_LMI; | 290 | skb->data[3] = NLPID_CISCO_LMI; |
291 | break; | 291 | break; |
292 | 292 | ||
293 | case __constant_htons(ETH_P_IP): | 293 | case cpu_to_be16(ETH_P_IP): |
294 | head_len = 4; | 294 | head_len = 4; |
295 | skb_push(skb, head_len); | 295 | skb_push(skb, head_len); |
296 | skb->data[3] = NLPID_IP; | 296 | skb->data[3] = NLPID_IP; |
297 | break; | 297 | break; |
298 | 298 | ||
299 | case __constant_htons(ETH_P_IPV6): | 299 | case cpu_to_be16(ETH_P_IPV6): |
300 | head_len = 4; | 300 | head_len = 4; |
301 | skb_push(skb, head_len); | 301 | skb_push(skb, head_len); |
302 | skb->data[3] = NLPID_IPV6; | 302 | skb->data[3] = NLPID_IPV6; |
303 | break; | 303 | break; |
304 | 304 | ||
305 | case __constant_htons(ETH_P_802_3): | 305 | case cpu_to_be16(ETH_P_802_3): |
306 | head_len = 10; | 306 | head_len = 10; |
307 | if (skb_headroom(skb) < head_len) { | 307 | if (skb_headroom(skb) < head_len) { |
308 | struct sk_buff *skb2 = skb_realloc_headroom(skb, | 308 | struct sk_buff *skb2 = skb_realloc_headroom(skb, |
@@ -426,7 +426,7 @@ static int pvc_xmit(struct sk_buff *skb, struct net_device *dev) | |||
426 | skb_put(skb, pad); | 426 | skb_put(skb, pad); |
427 | memset(skb->data + len, 0, pad); | 427 | memset(skb->data + len, 0, pad); |
428 | } | 428 | } |
429 | skb->protocol = __constant_htons(ETH_P_802_3); | 429 | skb->protocol = cpu_to_be16(ETH_P_802_3); |
430 | } | 430 | } |
431 | if (!fr_hard_header(&skb, pvc->dlci)) { | 431 | if (!fr_hard_header(&skb, pvc->dlci)) { |
432 | dev->stats.tx_bytes += skb->len; | 432 | dev->stats.tx_bytes += skb->len; |
@@ -496,10 +496,10 @@ static void fr_lmi_send(struct net_device *dev, int fullrep) | |||
496 | memset(skb->data, 0, len); | 496 | memset(skb->data, 0, len); |
497 | skb_reserve(skb, 4); | 497 | skb_reserve(skb, 4); |
498 | if (lmi == LMI_CISCO) { | 498 | if (lmi == LMI_CISCO) { |
499 | skb->protocol = __constant_htons(NLPID_CISCO_LMI); | 499 | skb->protocol = cpu_to_be16(NLPID_CISCO_LMI); |
500 | fr_hard_header(&skb, LMI_CISCO_DLCI); | 500 | fr_hard_header(&skb, LMI_CISCO_DLCI); |
501 | } else { | 501 | } else { |
502 | skb->protocol = __constant_htons(NLPID_CCITT_ANSI_LMI); | 502 | skb->protocol = cpu_to_be16(NLPID_CCITT_ANSI_LMI); |
503 | fr_hard_header(&skb, LMI_CCITT_ANSI_DLCI); | 503 | fr_hard_header(&skb, LMI_CCITT_ANSI_DLCI); |
504 | } | 504 | } |
505 | data = skb_tail_pointer(skb); | 505 | data = skb_tail_pointer(skb); |