Skip to content
Commit 0a5aeee0 authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller
Browse files

8139cp: Reduce duplicate csum/tso code in cp_start_xmit()



We calculate the value of the opts1 descriptor field in three different
places. With two different behaviours when given an invalid packet to
be checksummed — none of them correct. Sort that out.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3b80404
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment