summaryrefslogtreecommitdiff
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2013-02-09 04:27:48 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-02-15 01:31:19 -0800
commit21ba6fe19370f8008d1edd9aedd6dadd7e3fa8f8 (patch)
treec6b171a04255964314d035a41c05830754a1071f /sound/pci/emu10k1
parent2c7d7724bc5b12a8bc038880d2dfe8ea496c618d (diff)
igb: Update igb to use a path similar to ixgbe to determine when to stop Tx
After reviewing the igb and ixgbe code I realized there are a few issues in how the code is structured. Specifically we are not checking the size of the buffers being used in transmits and we are not using the same value to determine when to stop or start a Tx queue. As such the code is prone to be buggy. This patch makes it so that we have one value DESC_NEEDED that we will use for starting and stopping the queue. In addition we will check the size of buffers being used when setting up a transmit so as to avoid a possible buffer overrun if we were to receive a frame with a block of data larger than 32K in skb->data. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'sound/pci/emu10k1')
0 files changed, 0 insertions, 0 deletions