summaryrefslogtreecommitdiffstats
path: root/crypto/keywrap.c
diff options
context:
space:
mode:
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>2018-03-16 20:00:29 -0500
committerDavid S. Miller <davem@davemloft.net>2018-03-17 20:12:39 -0400
commit86b61a5f2e39bbee254aa4d2c5445059c7656f98 (patch)
tree3b30dd206b66a9d533ab19473afc46378a2f2c3d /crypto/keywrap.c
parent06b3e35788a4c6f0afa931b6251ecfe20ce4787b (diff)
downloadlinux-stable-86b61a5f2e39bbee254aa4d2c5445059c7656f98.tar.gz
linux-stable-86b61a5f2e39bbee254aa4d2c5445059c7656f98.tar.bz2
linux-stable-86b61a5f2e39bbee254aa4d2c5445059c7656f98.zip
ibmvnic: Improve TX buffer accounting
Improve TX pool buffer accounting to prevent the producer index from overruning the consumer. First, set the next free index to an invalid value if it is in use. If next buffer to be consumed is in use, drop the packet. Finally, if the transmit fails for some other reason, roll back the consumer index and set the free map entry to its original value. This should also be done if the DMA map fails. Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/keywrap.c')
0 files changed, 0 insertions, 0 deletions