aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 2346ca6bf5b..c26325ded20 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -6447,11 +6447,11 @@ static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr,
6447 6447
6448 ipv6 = ihl = 0; 6448 ipv6 = ihl = 0;
6449 switch (skb->protocol) { 6449 switch (skb->protocol) {
6450 case __constant_htons(ETH_P_IP): 6450 case cpu_to_be16(ETH_P_IP):
6451 ip_proto = ip_hdr(skb)->protocol; 6451 ip_proto = ip_hdr(skb)->protocol;
6452 ihl = ip_hdr(skb)->ihl; 6452 ihl = ip_hdr(skb)->ihl;
6453 break; 6453 break;
6454 case __constant_htons(ETH_P_IPV6): 6454 case cpu_to_be16(ETH_P_IPV6):
6455 ip_proto = ipv6_hdr(skb)->nexthdr; 6455 ip_proto = ipv6_hdr(skb)->nexthdr;
6456 ihl = (40 >> 2); 6456 ihl = (40 >> 2);
6457 ipv6 = 1; 6457 ipv6 = 1;