]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix default setting of TXDCTL.WTHRESH
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 24 Oct 2012 08:12:10 +0000 (08:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Nov 2012 09:00:10 +0000 (02:00 -0700)
commit2aca5c983b567a0af545362c38f80b16325bc3b3
tree8dfcf89d191c81c4be33026583f9ae97b510c836
parent32e1b56c9326a368b69f9d4cb15d5a56939b6a77
ixgbe: fix default setting of TXDCTL.WTHRESH

The q_vector->itr check in ixgbe_configure_tx_ring() was done prior to it
being set, which resulted in TXDCTL.WTHRESH always being set to 1 on driver
load, while consequent resets would set it to 8.

This patch moves the setting of q_vector->itr in ixgbe_alloc_q_vector() to
make sure that TXDCTL.WTHRESH is set to 8 by default.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c