diff options
| author | Sukadev Bhattiprolu <sukadev@linux.ibm.com> | 2021-09-14 20:52:57 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-09-15 11:12:24 +0100 |
| commit | f8ac0bfa7d7acefecfa18da8e27ff67adaefe45c (patch) | |
| tree | b007b4d83a3b9a82404e4db348590151a9c9569d /lib/mpi/mpi-sub-ui.c | |
| parent | 129854f061d8925a259f29b16d82bc19a23cf377 (diff) | |
ibmvnic: Reuse LTB when possible
Reuse the long term buffer during a reset as long as its size has
not changed. If the size has changed, free it and allocate a new
one of the appropriate size.
When we do this, alloc_long_term_buff() and reset_long_term_buff()
become identical. Drop reset_long_term_buff().
Reviewed-by: Rick Lindsley <ricklind@linux.vnet.ibm.com>
Reviewed-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
