qed: optimize common chain accessors
authorAlexander Lobakin <alobakin@marvell.com>
Wed, 22 Jul 2020 22:10:40 +0000 (01:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 01:19:03 +0000 (18:19 -0700)
commitf2aefd20b02d83b8565c867c38eedd88853967e9
tree4ec58c69ab830daa9635aa24d40c08fe139f9682
parent155065866bc36f20061c55fd2ca287a466911b16
qed: optimize common chain accessors

Constify chain pointers and refactor qed_chain_get_elem_left{,u32}() a bit.

Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/qed/qed_chain.h