]> git.baikalelectronics.ru Git - kernel.git/commit
qed: simplify initialization of the chains with an external PBL
authorAlexander Lobakin <alobakin@marvell.com>
Wed, 22 Jul 2020 22:10:37 +0000 (01:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 01:19:03 +0000 (18:19 -0700)
commitd514a60e1a3f8bc935eb51cff1d8352e40a31351
treef0dc8d87e56847087042b5c565d227e9c05609be
parent8ca779fc4eb69105846882569ec6a791e2a7a4f4
qed: simplify initialization of the chains with an external PBL

Fill PBL table parameters for chains with an external PBL data earlier on
qed_chain_init_params() rather than on allocation itself. This simplifies
allocation code and allows to extend struct ext_pbl for other chain types.

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>
drivers/net/ethernet/qlogic/qed/qed_chain.c