]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
amd-xgbe: Change from napi_complete to napi_complete_done
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 17 Feb 2016 17:48:19 +0000 (11:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 20:22:18 +0000 (15:22 -0500)
Change from using napi_complete to napi_complete_done to allow for the
use of gro_flush_timeout in tuning network processing.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c

index cfd3f7efda1cfcb42d5ce339ce3793df0bce4b25..5a4d9ca369d76a3c6406b8a340c996aa2db61c0b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * License 1: GPLv2
  *
- * Copyright (c) 2014 Advanced Micro Devices, Inc.
+ * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
  *
  * This file is free software; you may copy, redistribute and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@
  *
  * License 2: Modified BSD
  *
- * Copyright (c) 2014 Advanced Micro Devices, Inc.
+ * Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -2068,7 +2068,7 @@ static int xgbe_one_poll(struct napi_struct *napi, int budget)
        /* If we processed everything, we are done */
        if (processed < budget) {
                /* Turn off polling */
-               napi_complete(napi);
+               napi_complete_done(napi, processed);
 
                /* Enable Tx and Rx interrupts */
                enable_irq(channel->dma_irq);
@@ -2110,7 +2110,7 @@ static int xgbe_all_poll(struct napi_struct *napi, int budget)
        /* If we processed everything, we are done */
        if (processed < budget) {
                /* Turn off polling */
-               napi_complete(napi);
+               napi_complete_done(napi, processed);
 
                /* Enable Tx and Rx interrupts */
                xgbe_enable_rx_tx_ints(pdata);