diff options
author | Doug Berger <opendmb@gmail.com> | 2017-07-14 16:12:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-15 21:29:08 -0700 |
commit | 876dbadd53a7102e2a84afc84ea2bd3ee6dc5636 (patch) | |
tree | 6fd687f2decee36acbf7cec8e62318133dda91c8 /drivers/net/usb/smsc75xx.c | |
parent | ea6c3077678f969577e0f75aecda9478c3840912 (diff) |
net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit()
In case we fail to map a single fragment, we would be leaving the
transmit ring populated with stale entries.
This commit introduces the helper function bcmgenet_put_txcb()
which takes care of rewinding the per-ring write pointer back to
where we left.
It also consolidates the functionality of bcmgenet_xmit_single()
and bcmgenet_xmit_frag() into the bcmgenet_xmit() function to
make the unmapping of control blocks cleaner.
Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
0 files changed, 0 insertions, 0 deletions