summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cirrus
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2015-09-23 10:45:16 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-23 23:47:13 +0200
commit7f4c685633e2df9ba10d49a31dda13715745db37 (patch)
tree69c39a67bb822da7028d1d647bc1ff700a82e2f2 /drivers/net/ethernet/cirrus
parent8139cp: Reduce duplicate csum/tso code in cp_start_xmit() (diff)
downloadlinux-7f4c685633e2df9ba10d49a31dda13715745db37.tar.xz
linux-7f4c685633e2df9ba10d49a31dda13715745db37.zip
8139cp: Fix DMA unmapping of transmitted buffers
The low 16 bits of the 'opts1' field in the TX descriptor are supposed to still contain the buffer length when the descriptor is handed back to us. In practice, at least on my hardware, they don't. So stash the original value of the opts1 field and get the length to unmap from there. There are other ways we could have worked out the length, but I actually want a stash of the opts1 field anyway so that I can dump it alongside the contents of the descriptor ring when we suffer a TX timeout. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cirrus')
0 files changed, 0 insertions, 0 deletions