cxgb4: Use napi_complete_done() api in napi handler
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 23 Dec 2015 05:59:56 +0000 (11:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Dec 2015 17:05:53 +0000 (12:05 -0500)
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c

index 138be46d199dc37f5895b339d6a8f7caa081a0ec..5e3ffa73ee1330f6e89e68a9a907d4a01a86fe35 100644 (file)
@@ -2288,7 +2288,7 @@ static int napi_rx_handler(struct napi_struct *napi, int budget)
        if (likely(work_done < budget)) {
                int timer_index;
 
-               napi_complete(napi);
+               napi_complete_done(napi, work_done);
                timer_index = QINTR_TIMER_IDX_G(q->next_intr_params);
 
                if (q->adaptive_rx) {