net/qede: get consumer index once
authorBalazs Nemeth <bnemeth@redhat.com>
Fri, 26 Mar 2021 11:01:25 +0000 (12:01 +0100)
committerJerin Jacob <jerinj@marvell.com>
Sat, 27 Mar 2021 14:00:27 +0000 (15:00 +0100)
commit2c41740bf19ed0eb16d883557a24a654c804a0b4
tree6653a2e3ed8ab36951ec5ad627d106ee2dc72fdb
parent6a11a1eac0b6dcd52580eef99cf6f09e3361cc3b
net/qede: get consumer index once

Calling ecore_chain_get_cons_idx repeatedly is slower than calling it
once and using the result for the remainder of qede_process_tx_compl.

Signed-off-by: Balazs Nemeth <bnemeth@redhat.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
drivers/net/qede/qede_rxtx.c