OSDN Git Service

net: stmmac: Fix the TX IOC in xmit path
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 6 Nov 2019 15:03:05 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:22:55 +0000 (21:22 -0800)
commit7df4a3a76d34fe1f550e82c6ef368c7c40f0aaa4
tree7baff96ae1beebb0f922db8c5d1638bbcf5ec303
parentb2f071995b7a4f175467d683d4d18eab10810020
net: stmmac: Fix the TX IOC in xmit path

IOC bit must be only set in the last descriptor. Move the logic up a
little bit to make sure it's set in the correct descriptor.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c