[PATCH v2] net/idpf: fix crash when launching l3fwd
Xing, Beilei
beilei.xing at intel.com
Fri Nov 18 08:05:04 CET 2022
> -----Original Message-----
> From: Wu, Jingjing <jingjing.wu at intel.com>
> Sent: Friday, November 18, 2022 2:24 PM
> To: Xing, Beilei <beilei.xing at intel.com>
> Cc: dev at dpdk.org; Peng, Yuan <yuan.peng at intel.com>
> Subject: RE: [PATCH v2] net/idpf: fix crash when launching l3fwd
>
> > -
> > if (conf->txmode.mq_mode != RTE_ETH_MQ_TX_NONE) {
> > PMD_INIT_LOG(ERR, "Multi-queue TX mode %d is not
> supported",
> > conf->txmode.mq_mode);
> > diff --git a/drivers/net/idpf/idpf_vchnl.c
> > b/drivers/net/idpf/idpf_vchnl.c index ac6486d4ef..88770447f8 100644
> > --- a/drivers/net/idpf/idpf_vchnl.c
> > +++ b/drivers/net/idpf/idpf_vchnl.c
> > @@ -1197,6 +1197,9 @@ idpf_vc_dealloc_vectors(struct idpf_vport *vport)
> > int err, len;
> >
> > alloc_vec = vport->recv_vectors;
> > + if (alloc_vec == NULL)
> > + return -EINVAL;
> > +
> Would it be better to check before idpf_vc_dealloc_vectors?
Make sense, will update in next version.
More information about the dev
mailing list