Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-23 Thread Jakub Kicinski
On Tue, 23 Jun 2020 03:13:35 + Kirsher, Jeffrey T wrote: > In patch 8, the functions are not so small and simple. Are you sure > the compiler would inline them if we did not explicitly 'inline' > them? I want to make sure before making that change. I'm not, but why are they supposed to be in

RE: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-22 Thread Kirsher, Jeffrey T
> Subject: Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode > > On Mon, 22 Jun 2020 15:18:12 -0700 Jeff Kirsher wrote: > > +static inline bool i40e_check_fw_empr(struct i40e_pf *pf) { > > > +} > > > +static inline i40e_status i40e_handle_r

RE: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-22 Thread Kirsher, Jeffrey T
> Subject: Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode > > On Tue, 23 Jun 2020 00:18:08 + Kirsher, Jeffrey T wrote: > > > There is no need to use the inline keyword in C sources. Compiler > > > will inline small static functions, anyway. >

Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-22 Thread Jakub Kicinski
On Tue, 23 Jun 2020 00:18:08 + Kirsher, Jeffrey T wrote: > > There is no need to use the inline keyword in C sources. Compiler will > > inline > > small static functions, anyway. > > > > Same thing in patch 8. > > I am prepping a v2, are these the only issues? Want to make sure > before s

RE: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-22 Thread Kirsher, Jeffrey T
> Subject: Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode > > On Mon, 22 Jun 2020 15:18:12 -0700 Jeff Kirsher wrote: > > +static inline bool i40e_check_fw_empr(struct i40e_pf *pf) { > > > +} > > > +static inline i40e_status i40e_handle_r

Re: [net-next 4/9] i40e: detect and log info about pre-recovery mode

2020-06-22 Thread Jakub Kicinski
On Mon, 22 Jun 2020 15:18:12 -0700 Jeff Kirsher wrote: > +static inline bool i40e_check_fw_empr(struct i40e_pf *pf) > +{ > +} > +static inline i40e_status i40e_handle_resets(struct i40e_pf *pf) > +{ > + const i40e_status pfr = i40e_pf_loop_reset(pf); > + > + return is_empr ? I40E_ERR_RES