Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Logan Gunthorpe
On 05/12/17 01:54 PM, Serge Semin wrote: Just because no one said anything before, doesn't mean it's acceptable. I think that is the official Linux code review mantra ;-) Okay, if we are going to do it this way, then return ~0 instead. At least that way there is no ugly cast. Ok. I'll

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Logan Gunthorpe
On 05/12/17 01:54 PM, Serge Semin wrote: Just because no one said anything before, doesn't mean it's acceptable. I think that is the official Linux code review mantra ;-) Okay, if we are going to do it this way, then return ~0 instead. At least that way there is no ugly cast. Ok. I'll

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Serge Semin
On Tue, Dec 05, 2017 at 01:07:26PM -0500, Jon Mason wrote: > On Tue, Dec 5, 2017 at 12:31 PM, Serge Semin wrote: > > On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason > > wrote: > >> On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Serge Semin
On Tue, Dec 05, 2017 at 01:07:26PM -0500, Jon Mason wrote: > On Tue, Dec 5, 2017 at 12:31 PM, Serge Semin wrote: > > On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason > > wrote: > >> On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin > >> wrote: > >> > There is a common methods signature form

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Logan Gunthorpe
On 05/12/17 10:31 AM, Serge Semin wrote: -static int idt_ntb_msg_read(struct ntb_dev *ntb, int midx, int *pidx, u32 *msg) +static u32 idt_ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) { struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); if (midx < 0 || IDT_MSG_CNT <=

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Logan Gunthorpe
On 05/12/17 10:31 AM, Serge Semin wrote: -static int idt_ntb_msg_read(struct ntb_dev *ntb, int midx, int *pidx, u32 *msg) +static u32 idt_ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) { struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); if (midx < 0 || IDT_MSG_CNT <=

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Jon Mason
On Tue, Dec 5, 2017 at 12:31 PM, Serge Semin wrote: > On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason wrote: >> On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: >> > There is a common methods signature form used over all

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Jon Mason
On Tue, Dec 5, 2017 at 12:31 PM, Serge Semin wrote: > On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason wrote: >> On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: >> > There is a common methods signature form used over all the NTB API >> > like functions naming scheme, arguments names and

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Serge Semin
On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason wrote: > On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: > > There is a common methods signature form used over all the NTB API > > like functions naming scheme, arguments names and order, etc. > >

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Serge Semin
On Tue, Dec 05, 2017 at 11:49:10AM -0500, Jon Mason wrote: > On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: > > There is a common methods signature form used over all the NTB API > > like functions naming scheme, arguments names and order, etc. > > Recently added NTB messaging API IO

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Jon Mason
On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: > There is a common methods signature form used over all the NTB API > like functions naming scheme, arguments names and order, etc. > Recently added NTB messaging API IO callbacks were named a bit > different so should

Re: [PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-05 Thread Jon Mason
On Sun, Dec 3, 2017 at 2:17 PM, Serge Semin wrote: > There is a common methods signature form used over all the NTB API > like functions naming scheme, arguments names and order, etc. > Recently added NTB messaging API IO callbacks were named a bit > different so should be renamed to be in

[PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-03 Thread Serge Semin
There is a common methods signature form used over all the NTB API like functions naming scheme, arguments names and order, etc. Recently added NTB messaging API IO callbacks were named a bit different so should be renamed to be in compliance with the rest of the API. The changes are made in a way

[PATCH v2 01/15] NTB: Rename NTB messaging API methods

2017-12-03 Thread Serge Semin
There is a common methods signature form used over all the NTB API like functions naming scheme, arguments names and order, etc. Recently added NTB messaging API IO callbacks were named a bit different so should be renamed to be in compliance with the rest of the API. The changes are made in a way