RE: [RFC] net/ice: add devargs to control link update

2024-10-23 Thread Ye, MingjinX
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, October 22, 2024 11:23 PM > To: Ye, MingjinX > Cc: dev@dpdk.org > Subject: Re: [RFC] net/ice: add devargs to control link update > > On Tue, 22 Oct 2024 06:20:43 + > Mingjin Ye

Re: [RFC] net/ice: add devargs to control link update

2024-10-22 Thread Stephen Hemminger
On Tue, 22 Oct 2024 06:20:43 + Mingjin Ye wrote: > +static int > +ice_parse_clean_subtask_period(__rte_unused const char *key, > + const char *value, void *args) > +{ > + int *num = (int *)args; Cast of void * unnecessary in C. You probably want period to be unsigned not signe

[RFC] net/ice: add devargs to control link update

2024-10-21 Thread Mingjin Ye
This patch adds the ‘link_period’ devargs to adjust the link update period (microseconds), when the value is less than or equal to 0 it will be disabled, by default it is not enabled. Signed-off-by: Mingjin Ye --- doc/guides/nics/ice.rst | 7 drivers/net/ice/ice_ethdev.c | 69