[dpdk-dev] net/mlx5: removal already initialised mbuf fields
Checks
Commit Message
Since commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"), some
fields are already initialised and do not need to be modified by the PMD
anymore.
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
---
drivers/net/mlx5/mlx5_rxtx.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Mon, May 29, 2017 at 11:45:09AM +0200, Nelio Laranjeiro wrote:
> Since commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"), some
> fields are already initialised and do not need to be modified by the PMD
> anymore.
>
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Except for the title ("removal" => "remove"?),
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
On 5/29/2017 2:30 PM, Adrien Mazarguil wrote:
> On Mon, May 29, 2017 at 11:45:09AM +0200, Nelio Laranjeiro wrote:
>> Since commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"), some
>> fields are already initialised and do not need to be modified by the PMD
>> anymore.
>>
>> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
>> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
>
> Except for the title ("removal" => "remove"?),
>
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Applied to dpdk-next-net/master, thanks.
(fixed title)
@@ -2054,9 +2054,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
DATA_LEN(rep) = DATA_LEN(seg);
PKT_LEN(rep) = PKT_LEN(seg);
SET_DATA_OFF(rep, DATA_OFF(seg));
- NB_SEGS(rep) = NB_SEGS(seg);
PORT(rep) = PORT(seg);
- NEXT(rep) = NULL;
(*rxq->elts)[idx] = rep;
/*
* Fill NIC descriptor with the new buffer. The lkey and size