OSDN Git Service

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)
commitc3a321b06a806614350db4bda04215fee796f0fb
treef0dc8d87e56847087042b5c565d227e9c05609be
parent5e776d8016119e13c27fbb6e87c9e1fd6f8b2a75
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