aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorDoug Berger <[email protected]>2017-07-14 16:12:09 -0700
committerDavid S. Miller <[email protected]>2017-07-15 21:29:08 -0700
commit876dbadd53a7102e2a84afc84ea2bd3ee6dc5636 (patch)
tree6fd687f2decee36acbf7cec8e62318133dda91c8 /net/lapb/lapb_iface.c
parentea6c3077678f969577e0f75aecda9478c3840912 (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 <[email protected]> Signed-off-by: Doug Berger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions