Milena Olech wrote:
> Tx timestamp capabilities are negotiated for the uplink Vport.
> Driver receives information about the number of available Tx timestamp
> latches, the size of Tx timestamp value and the set of indexes used
> for Tx timestamping.
> 
> Add function to get the Tx timestamp capabilities and parse the uplink
> vport flag.
> 
> Co-developed-by: Emil Tantilov <[email protected]>
> Signed-off-by: Emil Tantilov <[email protected]>
> Co-developed-by: Pavan Kumar Linga <[email protected]>
> Signed-off-by: Pavan Kumar Linga <[email protected]>
> Reviewed-by: Alexander Lobakin <[email protected]>
> Signed-off-by: Milena Olech <[email protected]>

A few minor points. No big concerns from me.

>  struct idpf_vc_xn_manager;
>  
> +#define idpf_for_each_vport(adapter, iter) \
> +     for (struct idpf_vport **__##iter = &(adapter)->vports[0], \
> +          *iter = *__##iter; \
> +          __##iter < &(adapter)->vports[(adapter)->num_alloc_vports]; \
> +          iter = *(++__##iter))
> +

Perhaps more readable to just use an int:

    for (int i = 0; iter = &(adapter)->vports[i], i < 
(adapter)->num_alloc_vports; i++)

>  /**
> @@ -517,6 +524,60 @@ static int idpf_ptp_create_clock(const struct 
> idpf_adapter *adapter)
>       return 0;
>  }
>  
> +/**
> + * idpf_ptp_release_vport_tstamp - Release the Tx timestamps trakcers for a

s/trakcers/trackers

> +/**
> + * struct idpf_ptp_tx_tstamp - Parametrs for Tx timestamping

s/Parametrs/Parameters

> + * @list_member: the list member strutcure

s/strutcure/Structure

Please use a spell checker, don't rely on reviewers.

Also, going forward, IMHO documentation can be limited to APIs and
non-obvious functions/structs/fields.

Reply via email to