]> git.baikalelectronics.ru Git - kernel.git/commit
8139cp: Reduce duplicate csum/tso code in cp_start_xmit()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 23 Sep 2015 08:44:57 +0000 (09:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:47:12 +0000 (14:47 -0700)
commit04a255a29f8f81f4887dc77c88c6b0563bc5a501
treed21cdf659bb7a929d5548e495316f1a514354c29
parent06b5bdc7634d7c354524acf132ca1d7c15de188c
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: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/8139cp.c