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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 0c0b752315ca..c26325ded20e 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -3390,6 +3390,7 @@ static int niu_process_rx_pkt(struct niu *np, struct rx_ring_info *rp)
3390 rp->rx_bytes += skb->len; 3390 rp->rx_bytes += skb->len;
3391 3391
3392 skb->protocol = eth_type_trans(skb, np->dev); 3392 skb->protocol = eth_type_trans(skb, np->dev);
3393 skb_record_rx_queue(skb, rp->rx_channel);
3393 netif_receive_skb(skb); 3394 netif_receive_skb(skb);
3394 3395
3395 return num_rcr; 3396 return num_rcr;
@@ -3669,7 +3670,7 @@ static int niu_poll(struct napi_struct *napi, int budget)
3669 work_done = niu_poll_core(np, lp, budget); 3670 work_done = niu_poll_core(np, lp, budget);
3670 3671
3671 if (work_done < budget) { 3672 if (work_done < budget) {
3672 netif_rx_complete(napi); 3673 napi_complete(napi);
3673 niu_ldg_rearm(np, lp, 1); 3674 niu_ldg_rearm(np, lp, 1);
3674 } 3675 }
3675 return work_done; 3676 return work_done;
@@ -4088,12 +4089,12 @@ static void __niu_fastpath_interrupt(struct niu *np, int ldg, u64 v0)
4088static void niu_schedule_napi(struct niu *np, struct niu_ldg *lp, 4089static void niu_schedule_napi(struct niu *np, struct niu_ldg *lp,
4089 u64 v0, u64 v1, u64 v2) 4090 u64 v0, u64 v1, u64 v2)
4090{ 4091{
4091 if (likely(netif_rx_schedule_prep(&lp->napi))) { 4092 if (likely(napi_schedule_prep(&lp->napi))) {
4092 lp->v0 = v0; 4093 lp->v0 = v0;
4093 lp->v1 = v1; 4094 lp->v1 = v1;
4094 lp->v2 = v2; 4095 lp->v2 = v2;
4095 __niu_fastpath_interrupt(np, lp->ldg_num, v0); 4096 __niu_fastpath_interrupt(np, lp->ldg_num, v0);
4096 __netif_rx_schedule(&lp->napi); 4097 __napi_schedule(&lp->napi);
4097 } 4098 }
4098} 4099}
4099 4100
@@ -6446,11 +6447,11 @@ static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr,
6446 6447
6447 ipv6 = ihl = 0; 6448 ipv6 = ihl = 0;
6448 switch (skb->protocol) { 6449 switch (skb->protocol) {
6449 case __constant_htons(ETH_P_IP): 6450 case cpu_to_be16(ETH_P_IP):
6450 ip_proto = ip_hdr(skb)->protocol; 6451 ip_proto = ip_hdr(skb)->protocol;
6451 ihl = ip_hdr(skb)->ihl; 6452 ihl = ip_hdr(skb)->ihl;
6452 break; 6453 break;
6453 case __constant_htons(ETH_P_IPV6): 6454 case cpu_to_be16(ETH_P_IPV6):
6454 ip_proto = ipv6_hdr(skb)->nexthdr; 6455 ip_proto = ipv6_hdr(skb)->nexthdr;
6455 ihl = (40 >> 2); 6456 ihl = (40 >> 2);
6456 ipv6 = 1; 6457 ipv6 = 1;