[Intel-wired-lan] [PATCH iwl-net 01/10] idpf: initial PTP support

2024-11-13 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/Kconfig | 1

[Intel-wired-lan] [PATCH iwl-net 03/10] idpf: move virtchnl structures to the header file

2024-11-13 Thread Milena Olech
Move virtchnl strucutres to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 86 +-- .../net/ethernet/intel/idpf/idpf_virtchnl.h | 84 ++ 2

[Intel-wired-lan] [PATCH iwl-net 07/10] idpf: add Tx timestamp capabilities negotiation

2024-11-13 Thread Milena Olech
vport flag. Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf.h| 9 ++ drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH iwl-net 00/10] initial PTP support

2024-11-13 Thread Milena Olech
stable Tx timestamping, when more than 1 request per 1 second is sent to the driver. Debug is in progress, however PTP feature seems to be affected by the IDPF transmit flow, as the Tx timestamping relies on the completion tag. Milena Olech (10): idpf: initial PTP support virtchnl: add PTP virtchnl

[Intel-wired-lan] [PATCH iwl-net 06/10] idpf: add PTP clock configuration

2024-11-13 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 41 .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3 + .../ethernet/intel/idpf/idpf_virtchnl_ptp.c

[Intel-wired-lan] [PATCH iwl-net 09/10] idpf: add support for Rx timestamping

2024-11-13 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. Add supported Rx timestamp modes. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c | 74 - drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH iwl-net 10/10] idpf: change the method for mailbox workqueue allocation

2024-11-13 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH iwl-net 08/10] idpf: add Tx timestamp flows

2024-11-13 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf.h| 4 + .../net/ethernet/intel/idpf/idpf_ethtool.c| 63 + .../net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH iwl-net 02/10] virtchnl: add PTP virtchnl definitions

2024-11-13 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/virtchnl2.h | 302 1 file changed, 302 insertions(+) diff --git a/drivers/net

[Intel-wired-lan] [PATCH iwl-net 04/10] idpf: negotiate PTP capabilies and get PTP clock

2024-11-13 Thread Milena Olech
-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + drivers/net/ethernet/intel/idpf/idpf_dev.c| 14 + .../ethernet/intel/idpf/idpf_lan_pf_regs.h| 4 + drivers/net/ethernet/intel/idpf/idpf_ptp.c| 263

[Intel-wired-lan] [PATCH iwl-net 05/10] idpf: add mailbox access to read PTP clock time

2024-11-13 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf/idpf_ptp.c| 66

[Intel-wired-lan] [PATCH v2 iwl-next 03/10] idpf: move virtchnl structures to the header file

2024-11-26 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v2 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2024-11-26 Thread Milena Olech
-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + drivers/net/ethernet/intel/idpf/idpf_dev.c| 14 + .../ethernet/in

[Intel-wired-lan] [PATCH v2 iwl-next 01/10] idpf: add initial PTP support

2024-11-26 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v2 iwl-next 08/10] idpf: add Tx timestamp flows

2024-11-26 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v1 -> v2: add timestamping stats, use ndo_hwtamp_get/ndo_hwstamp_set drivers/net/ethernet/intel/idpf/idpf.h| 19 ++ .../net/ethernet/intel/idpf/idpf_ethtool.c|

[Intel-wired-lan] [PATCH v2 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2024-11-26 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v2 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2024-11-26 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v1 -> v2: change the idpf_for_each_vport macro drivers/net/ethernet/intel/idpf/idp

[Intel-wired-lan] [PATCH v2 iwl-next 06/10] idpf: add PTP clock configuration

2024-11-26 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v2 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2024-11-26 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v2 iwl-next 09/10] idpf: add support for Rx timestamping

2024-11-26 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Reviewed-by: Alexander Lobakin Signed-off-by: Milena

[Intel-wired-lan] [PATCH v2 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2024-11-26 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v2 iwl-next 00/10] add initial PTP support

2024-11-26 Thread Milena Olech
nor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move virtchnl structures to the header file idpf: negotiate PTP capabilities and get PTP clock idpf: add mailbox access to read PTP clock time idpf: add PTP clock configurat

[Intel-wired-lan] [PATCH v3 iwl-next 03/10] idpf: move virtchnl structures to the header file

2024-12-19 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v3 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2024-12-19 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v3 iwl-next 01/10] idpf: add initial PTP support

2024-12-19 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v3 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2024-12-19 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v3 iwl-next 00/10] idpf: add initial PTP support

2024-12-19 Thread Milena Olech
end idpf_ptp_set_rx_tstamp, split tstamp statistics v1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move virtchnl structures to the header file idpf: negotia

[Intel-wired-lan] [PATCH v3 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2024-12-19 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v3 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2024-12-19 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v2 -> v3: revert changes in idpf_for_each_vport, fix minor issues v1 -> v2: chan

[Intel-wired-lan] [PATCH v3 iwl-next 06/10] idpf: add PTP clock configuration

2024-12-19 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v3 iwl-next 08/10] idpf: add Tx timestamp flows

2024-12-19 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v2 -> v3: change get_timestamp_filter function name, split stats into vport-based and tx queue-based v1 -> v2: add timestamping stats, use ndo_hwtamp_get/ndo_hwsta

[Intel-wired-lan] [PATCH v3 iwl-next 09/10] idpf: add support for Rx timestamping

2024-12-19 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Signed-off-by: Milena Olech --- v2 -> v3: add disable

[Intel-wired-lan] [PATCH v3 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2024-12-19 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v4 iwl-next 01/10] idpf: add initial PTP support

2025-01-14 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v4 iwl-next 08/10] idpf: add Tx timestamp flows

2025-01-14 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v3 -> v4: change Tx timestamp filters based on the PTP capabilities, use list_for_each_entry_safe when deleting list items, rewrite function that extends Tx timestamp value to

[Intel-wired-lan] [PATCH v4 iwl-next 09/10] idpf: add support for Rx timestamping

2025-01-14 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v4 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-01-14 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v2 -> v3: revert changes in idpf_for_each_vport, fix mi

[Intel-wired-lan] [PATCH v4 iwl-next 06/10] idpf: add PTP clock configuration

2025-01-14 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v4 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-01-14 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v4 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-01-14 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v4 iwl-next 00/10] idpf: add initial PTP support

2025-01-14 Thread Milena Olech
ite function that extends Tx timestamp value, minor fixes v2 -> v3: fix minor issues, revert idpf_for_each_vport changes, extend idpf_ptp_set_rx_tstamp, split tstamp statistics v1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling issues Milena Olech (10): idpf: ad

[Intel-wired-lan] [PATCH v4 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-01-14 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v4 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-01-14 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v4 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-01-14 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v5 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-01-17 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v5 iwl-next 01/10] idpf: add initial PTP support

2025-01-17 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v5 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-01-17 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v5 iwl-next 06/10] idpf: add PTP clock configuration

2025-01-17 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v5 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-01-17 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v5 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-01-17 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v5 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-01-17 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v2 -> v3: revert changes in idpf_for_each_vport, fix mi

[Intel-wired-lan] [PATCH v5 iwl-next 09/10] idpf: add support for Rx timestamping

2025-01-17 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v5 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-01-17 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v5 iwl-next 08/10] idpf: add Tx timestamp flows

2025-01-17 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v4 -> v5: fix the spin_unlock_bh when the Tx timestamp is requested and the list of free latches is empty v3 -> v4: change Tx timestamp filters based on the PTP capabilitie

[Intel-wired-lan] [PATCH v5 iwl-next 00/10] idpf: add initial PTP support

2025-01-17 Thread Milena Olech
get/set, fix minor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move virtchnl structures to the header file idpf: negotiate PTP capabilities and get PTP clock idpf: add mailbox access to read PTP clock time idpf: a

[Intel-wired-lan] [PATCH v8 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-02-27 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v8 iwl-next 00/10] idpf: add initial PTP support

2025-02-27 Thread Milena Olech
1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move virtchnl structures to the header file idpf: negotiate PTP capabilities and get PTP clock idpf: add m

[Intel-wired-lan] [PATCH v8 iwl-next 08/10] idpf: add Tx timestamp flows

2025-02-27 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v7 -> v8: change the type of delta calculated when the timestamp is extended to 64 bit based on the device clock value v6 -> v7: change the method for preparing flow descip

[Intel-wired-lan] [PATCH v8 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-02-27 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v7 -> v8: refactor idpf_for_each_vport, change a function that checks if Tx timestamp fo

[Intel-wired-lan] [PATCH v8 iwl-next 06/10] idpf: add PTP clock configuration

2025-02-27 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v8 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-02-27 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v8 iwl-next 01/10] idpf: add initial PTP support

2025-02-27 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v8 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-02-27 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v8 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-02-27 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v8 iwl-next 09/10] idpf: add support for Rx timestamping

2025-02-27 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Signed-off-by: Milena Olech --- v7 -> v8: add a funct

[Intel-wired-lan] [PATCH v8 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-02-27 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v7 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-02-18 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v7 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-02-18 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v7 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-02-18 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v7 iwl-next 06/10] idpf: add PTP clock configuration

2025-02-18 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v7 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-02-18 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v7 iwl-next 08/10] idpf: add Tx timestamp flows

2025-02-18 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v6 -> v7: change the method for preparing flow desciptor to set tstamp fields to 0 indirectly v5 -> v6: change locking mechanism in get_ts_info, clean timestamp field

[Intel-wired-lan] [PATCH v7 iwl-next 09/10] idpf: add support for Rx timestamping

2025-02-18 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Signed-off-by: Milena Olech --- v5 -> v6: add Rx fil

[Intel-wired-lan] [PATCH v7 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-02-18 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v2 -> v3: revert changes in idpf_for_each_vport, fix mi

[Intel-wired-lan] [PATCH v7 iwl-next 01/10] idpf: add initial PTP support

2025-02-18 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v7 iwl-next 00/10] idpf: add initial PTP support

2025-02-18 Thread Milena Olech
dependent on Tx timestamp cap, rewrite function that extends Tx timestamp value, minor fixes v2 -> v3: fix minor issues, revert idpf_for_each_vport changes, extend idpf_ptp_set_rx_tstamp, split tstamp statistics v1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling is

[Intel-wired-lan] [PATCH v7 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-02-18 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v6 iwl-next 01/10] idpf: add initial PTP support

2025-02-18 Thread Milena Olech
PTP feature is supported if the VIRTCHNL2_CAP_PTP is negotiated during the capabilities recognition. Initial PTP support includes PTP initialization and registration of the clock. Reviewed-by: Alexander Lobakin Reviewed-by: Vadim Fedorenko Reviewed-by: Willem de Bruijn Signed-off-by: Milena

[Intel-wired-lan] [PATCH v6 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-02-18 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl2.h |

[Intel-wired-lan] [PATCH v6 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-02-18 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v6 iwl-next 00/10] idpf: add initial PTP support

2025-02-18 Thread Milena Olech
port changes, extend idpf_ptp_set_rx_tstamp, split tstamp statistics v1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move virtchnl structures to the hea

[Intel-wired-lan] [PATCH v6 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-02-18 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idpf.h| 2 + driv

[Intel-wired-lan] [PATCH v6 iwl-next 06/10] idpf: add PTP clock configuration

2025-02-18 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/intel/idpf/idpf_ptp.h| 43 +++- .../net/ethernet/intel/idpf/idpf_virtchnl.c | 3

[Intel-wired-lan] [PATCH v6 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-02-18 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v6 iwl-next 08/10] idpf: add Tx timestamp flows

2025-02-18 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v5 -> v6: change locking mechanism in get_ts_info, clean timestamp fields when preparing flow descriptor to prevent collisions with PHY timestamping v4 -> v5: f

[Intel-wired-lan] [PATCH v6 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-02-18 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v2 -> v3: revert changes in idpf_for_each_vport, fix mi

[Intel-wired-lan] [PATCH v6 iwl-next 09/10] idpf: add support for Rx timestamping

2025-02-18 Thread Milena Olech
Add Rx timestamp function when the Rx timestamp value is read directly from the Rx descriptor. In order to extend the Rx timestamp value to 64 bit in hot path, the PHC time is cached in the receive groups. Add supported Rx timestamp modes. Signed-off-by: Milena Olech --- v5 -> v6: add Rx fil

[Intel-wired-lan] [PATCH v6 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-02-18 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v9 iwl-next 04/10] idpf: negotiate PTP capabilities and get PTP clock

2025-03-13 Thread Milena Olech
Reviewed-by: Willem de Bruijn Tested-by: Willem de Bruijn Tested-by: Mina Almasry Signed-off-by: Milena Olech --- v1 -> v2: change the size of access fields in ptp struct, remove CONFIG_PCIE_PTM dependency drivers/net/ethernet/intel/idpf/Makefile | 2 + drivers/net/ethernet/intel/idpf/idp

[Intel-wired-lan] [PATCH v9 iwl-next 03/10] idpf: move virtchnl structures to the header file

2025-03-13 Thread Milena Olech
Move virtchnl structures to the header file to expose them for the PTP virtchnl file. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Tested-by: Mina Almasry Signed-off-by: Milena Olech --- v1 -> v2: fix commit message title .../net/ethernet/intel/idpf/idpf_virtchnl.c |

[Intel-wired-lan] [PATCH v9 iwl-next 02/10] virtchnl: add PTP virtchnl definitions

2025-03-13 Thread Milena Olech
. Additionally, API allows to configure the secondary mailbox, dedicated exclusively for PTP purposes. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Tested-by: Mina Almasry Signed-off-by: Milena Olech --- v1 -> v2: fix struct description drivers/net/ethernet/intel/idpf/virtchnl

[Intel-wired-lan] [PATCH v9 iwl-next 00/10] idpf: add initial PTP support

2025-03-13 Thread Milena Olech
minor issues, revert idpf_for_each_vport changes, extend idpf_ptp_set_rx_tstamp, split tstamp statistics v1 -> v2: add stats for timestamping, use ndo_hwtamp_get/set, fix minor spelling issues Milena Olech (10): idpf: add initial PTP support virtchnl: add PTP virtchnl definitions idpf: move vi

[Intel-wired-lan] [PATCH v9 iwl-next 01/10] idpf: add initial PTP support

2025-03-13 Thread Milena Olech
Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/Kconfig | 1 + drivers/net/ethernet/intel/idpf/Makefile | 1 + drivers/net/ethernet/intel/idpf/idpf.h| 3 + drivers/net/ethernet/intel/idpf/idpf_main.c | 4 + drivers/net/ethernet/intel/idpf/idpf_ptp.c

[Intel-wired-lan] [PATCH v9 iwl-next 05/10] idpf: add mailbox access to read PTP clock time

2025-03-13 Thread Milena Olech
messages, move them to dedicated secondary mailbox, read the PTP clock time and cross timestamp using mailbox messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Signed-off-by: Milena Olech --- .../ethernet/intel/idpf/idpf_controlq_api.h | 3 + drivers/net/ethernet/intel/idpf

[Intel-wired-lan] [PATCH v9 iwl-next 07/10] idpf: add Tx timestamp capabilities negotiation

2025-03-13 Thread Milena Olech
vport flag. Reviewed-by: Alexander Lobakin Co-developed-by: Emil Tantilov Signed-off-by: Emil Tantilov Co-developed-by: Pavan Kumar Linga Signed-off-by: Pavan Kumar Linga Signed-off-by: Milena Olech --- v7 -> v8: refactor idpf_for_each_vport, change a function that checks if Tx timestamp fo

[Intel-wired-lan] [PATCH v9 iwl-next 09/10] idpf: add support for Rx timestamping

2025-03-13 Thread Milena Olech
-by: Milena Olech --- v8 -> v9: upscale Rx filters to HWTSTAMP_FILTER_ALL if Rx filter is different than HWTSTAMP_FILTER_NONE v7 -> v8: add a function to check if the Rx timestamp for a given vport is enabled v5 -> v6: add Rx filter v2 -> v3: add disable Rx timestamp v1 -> v2: extend

[Intel-wired-lan] [PATCH v9 iwl-next 08/10] idpf: add Tx timestamp flows

2025-03-13 Thread Milena Olech
64-bit and provided back to the skb. Co-developed-by: Josh Hay Signed-off-by: Josh Hay Signed-off-by: Milena Olech --- v8 -> v9: update kernel_hwtstamp_config when timestamp mode is set, check link status in timestamp callbacks idpf_hwtstamp_get/set v7 -> v8: change the type of delta calc

[Intel-wired-lan] [PATCH v9 iwl-next 10/10] idpf: change the method for mailbox workqueue allocation

2025-03-13 Thread Milena Olech
queue virtchl messages on less loaded CPUs, what eliminates delays. Reviewed-by: Alexander Lobakin Signed-off-by: Milena Olech --- drivers/net/ethernet/intel/idpf/idpf_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b

[Intel-wired-lan] [PATCH v9 iwl-next 06/10] idpf: add PTP clock configuration

2025-03-13 Thread Milena Olech
messages. Reviewed-by: Alexander Lobakin Reviewed-by: Willem de Bruijn Tested-by: Mina Almasry Signed-off-by: Milena Olech --- v8 -> v9: minor - remove unnecessary dot in the function description drivers/net/ethernet/intel/idpf/idpf_ptp.c| 191 ++ drivers/net/ethernet/in