[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BN7PR07MB451317995E2166228FA9108598600@BN7PR07MB4513.namprd07.prod.outlook.com>
Date: Sun, 3 Jun 2018 16:10:04 +0000
From: "Bason, Yuval" <Yuval.Bason@...ium.com>
To: Leon Romanovsky <leon@...nel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"jgg@...lanox.com" <jgg@...lanox.com>,
"dledford@...hat.com" <dledford@...hat.com>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"Kalderon, Michal" <Michal.Kalderon@...ium.com>,
"Elior, Ariel" <Ariel.Elior@...ium.com>
Subject: RE: [PATCH net-next] qed: Add srq core support for RoCE and iWARP
From: Leon Romanovsky [mailto:leon@...nel.org]
Sent: Thursday, May 31, 2018 8:33 PM
> On Wed, May 30, 2018 at 04:11:37PM +0300, Yuval Bason wrote:
> > This patch adds support for configuring SRQ and provides the necessary
> > APIs for rdma upper layer driver (qedr) to enable the SRQ feature.
> >
> > Signed-off-by: Michal Kalderon <michal.kalderon@...ium.com>
> > Signed-off-by: Ariel Elior <ariel.elior@...ium.com>
> > Signed-off-by: Yuval Bason <yuval.bason@...ium.com>
> > ---
> > drivers/net/ethernet/qlogic/qed/qed_cxt.c | 5 +-
> > drivers/net/ethernet/qlogic/qed/qed_cxt.h | 1 +
> > drivers/net/ethernet/qlogic/qed/qed_hsi.h | 2 +
> > drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 23 ++++
> > drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +
> > drivers/net/ethernet/qlogic/qed/qed_rdma.c | 179
> +++++++++++++++++++++++++++-
> > drivers/net/ethernet/qlogic/qed/qed_rdma.h | 2 +
> > drivers/net/ethernet/qlogic/qed/qed_roce.c | 17 ++-
> > include/linux/qed/qed_rdma_if.h | 12 +-
> > 9 files changed, 235 insertions(+), 8 deletions(-)
> >
>
> ...
>
> > + struct qed_sp_init_data init_data;
>
> ...
>
> > + memset(&init_data, 0, sizeof(init_data));
>
> This patter is so common in this patch, why?
>
> "struct qed_sp_init_data init_data = {};" will do the trick.
>
Thanks for pointing out, will be fixed in v2.
> Thanks
Powered by blists - more mailing lists