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
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
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
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
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
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
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
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
.
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
-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
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
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 |
-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
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
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|
.
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 |
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
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
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
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
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
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
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 |
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
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
.
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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 |
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
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
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 |
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
.
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 |
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
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 |
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
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
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
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
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
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
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
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
.
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 |
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
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
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
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
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
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
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
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 |
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
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
.
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 |
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
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 |
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
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
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
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
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
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
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
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
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
.
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 |
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 |
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
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
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
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
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
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
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
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
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
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 |
.
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
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
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
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
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
-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
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
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
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
99 matches
Mail list logo