[dpdk-dev] [PATCH 1/3] net/mlx5: fix Ethernet header re-writing

Nélio Laranjeiro nelio.laranjeiro at 6wind.com
Thu Feb 2 17:38:31 CET 2017


Hi Ferruh,

On Thu, Feb 02, 2017 at 03:34:04PM +0000, Ferruh Yigit wrote:
> On 2/2/2017 10:34 AM, Nelio Laranjeiro wrote:
> > First two bytes of the Ethernet header was written twice at the same place.
> 
> Is this patch just prevents re-writing 2 bytes of buffer, or changes the
> buffer content as well?

It only prevents to re-write 2 bytes of the buffer.
 
> If buffer content also updated, I think it would be nice to mention in
> the commit log.

The buffer is only read.

> And if buffer content is not changed, will it be fair to say this patch
> is refactor patch instead of fix?

Well, I understand that it can be seen as not being a fix as the final
behavior remains the same.  Is it possible to change it to:
"net/mlx5: avoid re-writing first 2 bytes of Ethernet header"

> > Fixes: b8fe952ec5b6 ("net/mlx5: prepare Tx vectorization")
> > 
> > Signed-off-by: Yongseok Koh <yskoh at mellanox.com>
> > Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
> > ---
> <...>

Regards,

-- 
Nélio Laranjeiro
6WIND


More information about the dev mailing list