Re: [PATCH v5 4/4] scatterlist: add sgl_memset()

2021-01-09 Thread Douglas Gilbert
On 2021-01-07 12:46 p.m., Jason Gunthorpe wrote: On Mon, Dec 28, 2020 at 06:49:55PM -0500, Douglas Gilbert wrote: The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes. As its name suggests sgl_memset() i

Re: [PATCH v5 4/4] scatterlist: add sgl_memset()

2021-01-07 Thread Jason Gunthorpe
On Mon, Dec 28, 2020 at 06:49:55PM -0500, Douglas Gilbert wrote: > The existing sg_zero_buffer() function is a bit restrictive. For > example protection information (PI) blocks are usually initialized > to 0xff bytes. As its name suggests sgl_memset() is modelled on > memset(). One difference is th

[PATCH v5 4/4] scatterlist: add sgl_memset()

2020-12-28 Thread Douglas Gilbert
The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes. As its name suggests sgl_memset() is modelled on memset(). One difference is the type of the val argument which is u8 rather than int. Plus it returns t