diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2018-03-16 20:00:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-17 20:12:39 -0400 |
commit | 86b61a5f2e39bbee254aa4d2c5445059c7656f98 (patch) | |
tree | 3b30dd206b66a9d533ab19473afc46378a2f2c3d /crypto/keywrap.c | |
parent | 06b3e35788a4c6f0afa931b6251ecfe20ce4787b (diff) | |
download | linux-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