DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Qi Z" <qi.z.zhang@intel.com>
To: Luca Boccassi <bluca@debian.org>,
	"Zhou, YidingX" <yidingx.zhou@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] ice: fix build error on 32bit configure
Date: Thu, 6 Jul 2023 06:02:19 +0000	[thread overview]
Message-ID: <DM4PR11MB5994EE004836C1B7CE96B4F8D72CA@DM4PR11MB5994.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAMw=ZnTDnZwcbbz5V3D07to+27B28yOEB2g+3=tr6jeCrXszwQ@mail.gmail.com>



> -----Original Message-----
> From: Luca Boccassi <bluca@debian.org>
> Sent: Thursday, July 6, 2023 3:44 AM
> To: Zhou, YidingX <yidingx.zhou@intel.com>; dev@dpdk.org
> Subject: Re: [PATCH] ice: fix build error on 32bit configure
> 
> On Wed, 5 Jul 2023 at 08:21, Yiding Zhou <yidingx.zhou@intel.com> wrote:
> >
> > Replace 'rte_memcpy' with 'memcpy' like other PMD code to avoid errors
> > when compiling with GCC-12 on 32-bit configure.
> >
> > Compiler reports the follow error:
> >
> > error: array subscript 8 is outside array bounds of "struct rte_mbuf *[32]"
> > [-Werror=array-bounds]
> >
> > Fixes: c68a52b8b38c ("net/ice: support vector SSE in Rx")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
> > ---
> >  drivers/net/ice/ice_rxtx_vec_common.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/ice/ice_rxtx_vec_common.h
> > b/drivers/net/ice/ice_rxtx_vec_common.h
> > index eec6ea2134..55840cf170 100644
> > --- a/drivers/net/ice/ice_rxtx_vec_common.h
> > +++ b/drivers/net/ice/ice_rxtx_vec_common.h
> > @@ -72,7 +72,7 @@ ice_rx_reassemble_packets(struct ice_rx_queue *rxq,
> struct rte_mbuf **rx_bufs,
> >         /* save the partial packet for next time */
> >         rxq->pkt_first_seg = start;
> >         rxq->pkt_last_seg = end;
> > -       rte_memcpy(rx_bufs, pkts, pkt_idx * (sizeof(*pkts)));
> > +       memcpy(rx_bufs, pkts, pkt_idx * (sizeof(*pkts)));
> >         return pkt_idx;
> >  }
> 
> Tested-by: Luca Boccassi <bluca@debian.org>

Applied to dpdk-next-net-intel.

Thanks
Qi

      reply	other threads:[~2023-07-06  6:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05  7:32 Yiding Zhou
2023-07-05 19:44 ` Luca Boccassi
2023-07-06  6:02   ` Zhang, Qi Z [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR11MB5994EE004836C1B7CE96B4F8D72CA@DM4PR11MB5994.namprd11.prod.outlook.com \
    --to=qi.z.zhang@intel.com \
    --cc=bluca@debian.org \
    --cc=dev@dpdk.org \
    --cc=yidingx.zhou@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).