Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Arnd Bergmann
On Fri, May 15, 2020 at 12:06 AM Jeffrey Hugo wrote: > >> + u16 req_id; > >> + u8 seq_id; > >> + u8 cmd; > >> + u32 resv; > >> + u64 src_addr; > >> + u64 dest_addr; > >> + u32 len; > >> + u32 resv2; > >> + u64

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Jeffrey Hugo
Thanks for the review. On 5/14/2020 3:36 PM, Arnd Bergmann wrote: On Thu, May 14, 2020 at 4:09 PM Jeffrey Hugo wrote: +struct dbc_req { /* everything must be little endian encoded */ Instead of the comment, I suppose you want to use __le16 and __le32 types and let sparse check that you got

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Arnd Bergmann
On Thu, May 14, 2020 at 4:09 PM Jeffrey Hugo wrote: > > +struct dbc_req { /* everything must be little endian encoded */ Instead of the comment, I suppose you want to use __le16 and __le32 types and let sparse check that you got it right. > + u16 req_id; > + u8 seq_id; > +

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Jeffrey Hugo
On 5/14/2020 10:37 AM, Greg KH wrote: On Thu, May 14, 2020 at 10:12:03AM -0600, Jeffrey Hugo wrote: On 5/14/2020 9:56 AM, Greg KH wrote: On Thu, May 14, 2020 at 09:06:53AM -0600, Jeffrey Hugo wrote: On 5/14/2020 8:14 AM, Greg KH wrote: On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wr

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Greg KH
On Thu, May 14, 2020 at 10:12:03AM -0600, Jeffrey Hugo wrote: > On 5/14/2020 9:56 AM, Greg KH wrote: > > On Thu, May 14, 2020 at 09:06:53AM -0600, Jeffrey Hugo wrote: > > > On 5/14/2020 8:14 AM, Greg KH wrote: > > > > On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wrote: > > > > > +struct q

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Jeffrey Hugo
On 5/14/2020 9:56 AM, Greg KH wrote: On Thu, May 14, 2020 at 09:06:53AM -0600, Jeffrey Hugo wrote: On 5/14/2020 8:14 AM, Greg KH wrote: On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wrote: +struct qaic_execute { + __u16 ver;/* struct version, must be 1 */ No need

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Greg KH
On Thu, May 14, 2020 at 09:06:53AM -0600, Jeffrey Hugo wrote: > On 5/14/2020 8:14 AM, Greg KH wrote: > > On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wrote: > > > +struct qaic_execute { > > > + __u16 ver;/* struct version, must be 1 */ > > > > No need for structures to be v

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Jeffrey Hugo
On 5/14/2020 8:14 AM, Greg KH wrote: On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wrote: +struct qaic_execute { + __u16 ver;/* struct version, must be 1 */ No need for structures to be versioned. If you change something, then add a new ioctl if you really needed

Re: [RFC PATCH 5/8] qaic: Implement data path

2020-05-14 Thread Greg KH
On Thu, May 14, 2020 at 08:07:43AM -0600, Jeffrey Hugo wrote: > +struct qaic_execute { > + __u16 ver;/* struct version, must be 1 */ No need for structures to be versioned. If you change something, then add a new ioctl if you really needed it. thanks, greg k-h