[dpdk-dev] [PATCH v3 1/2] net/mlx5: replace network to host macros
Shachar Beiser
shacharbe at mellanox.com
Mon Sep 18 11:47:03 CEST 2017
> -----Original Message-----
> From: Yongseok Koh
> Sent: Friday, September 15, 2017 11:50 PM
> To: Shachar Beiser <shacharbe at mellanox.com>
> Cc: dev at dpdk.org; Adrien Mazarguil <adrien.mazarguil at 6wind.com>; Nélio
> Laranjeiro <nelio.laranjeiro at 6wind.com>
> Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/mlx5: replace network to host
> macros
>
>
> > On Sep 14, 2017, at 6:43 AM, Shachar Beiser <shacharbe at mellanox.com>
> wrote:
> >
> > Signed-off-by: Shachar Beiser <shacharbe at mellanox.com>
> > ---
> [...]
> > @@ -550,7 +553,8 @@
> > max_wqe -= n;
> > if (tso) {
> > uint32_t inl =
> > - htonl(copy_b |
> MLX5_INLINE_SEG);
> > + rte_cpu_to_be_32(copy_b |
> > + MLX5_INLINE_SEG);
> Wrong indentation.
>
Since there is a constrain of 80 characters a line , this indentation was accepted by
Nélio .
> [...]
> > @@ -605,8 +605,8 @@ int mlx5_tx_queue_setup(struct rte_eth_dev *,
> uint16_t, uint16_t, unsigned int,
> > uint64_t *dst = (uint64_t *)((uintptr_t)txq->bf_reg);
> > volatile uint64_t *src = ((volatile uint64_t *)wqe);
> >
> > - rte_io_wmb();
> > - *txq->qp_db = htonl(txq->wqe_ci);
> > + rte_wmb();
> Look like a mistake when rebasing. This should not be touched by this patch.
>
> > + *txq->qp_db = rte_cpu_to_be_32(txq->wqe_ci);
> > /* Ensure ordering between DB record and BF copy. */
> > rte_wmb();
> > *dst = *src;
>
Yes , this is true. There is a fix for this issue in the coming patch:
[dpdk-dev,v4,1/2] net/mlx5: replace network to host macros
http://dpdk.org/dev/patchwork/patch/28804/
> --
> Thanks,
> Yongseok
>
More information about the dev
mailing list