[Intel-wired-lan] [PATCH iwl-next v3 00/12] Add support for Rx timestamping for both ice and iavf drivers

2024-04-03 Thread Mateusz Polchlopek
t for indirect access to PHC time iavf: periodically cache PHC time iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors iavf: handle SIOCSHWTSTAMP and SIOCGHWTSTAMP iavf: add support for Rx timestamps to hotpath Mateusz Polchlopek (1): iavf: Implement checking DD desc

[Intel-wired-lan] [PATCH iwl-next v3 01/12] virtchnl: add support for enabling PTP on iAVF

2024-04-03 Thread Mateusz Polchlopek
-by: Wojciech Drewek Signed-off-by: Jacob Keller Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 66 1 file changed, 66 insertions(+) diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h index 8e177b67e82f..5003d29e3f5b

[Intel-wired-lan] [PATCH iwl-next v3 03/12] virtchnl: add enumeration for the rxdid format

2024-04-03 Thread Mateusz Polchlopek
. Provide an enumeration for the values as well as the bit positions as returned by the supported_rxdids data from the VIRTCHNL_OP_GET_SUPPORTED_RXDIDS. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 46

[Intel-wired-lan] [PATCH iwl-next v3 02/12] ice: support Rx timestamp on flex descriptor

2024-04-03 Thread Mateusz Polchlopek
timestamps that the stack expects. To convert 32b to 64b, we need a current PHC time. VIRTCHNL_OP_1588_PTP_GET_TIME is sent by the VF and responded by the PF with the current PHC time. Reviewed-by: Wojciech Drewek Signed-off-by: Simei Su Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz

[Intel-wired-lan] [PATCH iwl-next v3 04/12] iavf: add support for negotiating flexible RXDID format

2024-04-03 Thread Mateusz Polchlopek
format. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 20 ++- drivers/net/ethernet/intel/iavf/iavf_main.c | 124 +- drivers/net/ethernet

[Intel-wired-lan] [PATCH iwl-next v3 06/12] iavf: add initial framework for registering PTP clock

2024-04-03 Thread Mateusz Polchlopek
it would probably perform poorly due to the lack of direct time access. Reviewed-by: Sai Krishna Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Ahmed Zaki Signed-off-by: Ahmed Zaki Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers

[Intel-wired-lan] [PATCH iwl-next v3 05/12] iavf: negotiate PTP capabilities

2024-04-03 Thread Mateusz Polchlopek
initialization. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 17 +++- drivers/net/ethernet/intel/iavf/iavf_main.c | 69 + drivers/net/ethernet

[Intel-wired-lan] [PATCH iwl-next v3 08/12] iavf: periodically cache PHC time

2024-04-03 Thread Mateusz Polchlopek
time from the PF. The jitter and latency involved with this command aren't important, because the cached time just needs to be kept up to date within about ~2 seconds. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polch

[Intel-wired-lan] [PATCH iwl-next v3 10/12] iavf: Implement checking DD desc field

2024-04-03 Thread Mateusz Polchlopek
at the very beginning, before extracting other fields. Reviewed-by: Wojciech Drewek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 28 - drivers/net/ethernet/intel/iavf/iavf_txrx.h | 17 - drivers/net/ethernet/intel/iavf

[Intel-wired-lan] [PATCH iwl-next v3 07/12] iavf: add support for indirect access to PHC time

2024-04-03 Thread Mateusz Polchlopek
Drewek Signed-off-by: Jacob Keller Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +- drivers/net/ethernet/intel/iavf/iavf_ptp.c| 153 ++ drivers/net/ethernet/intel/iavf/iavf_ptp.h| 16 ++ .../net/ethernet/intel/iavf/iavf_virtchnl.c

[Intel-wired-lan] [PATCH iwl-next v3 12/12] iavf: add support for Rx timestamps to hotpath

2024-04-03 Thread Mateusz Polchlopek
: Wojciech Drewek Signed-off-by: Jacob Keller Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +++ drivers/net/ethernet/intel/iavf/iavf_ptp.c | 67 + drivers/net/ethernet/intel/iavf/iavf_ptp.h | 4 ++ drivers/net/ethernet/intel/iavf/iavf_t

[Intel-wired-lan] [PATCH iwl-next v3 11/12] iavf: handle SIOCSHWTSTAMP and SIOCGHWTSTAMP

2024-04-03 Thread Mateusz Polchlopek
code. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 25 drivers/net/ethernet/intel/iavf/iavf_ptp.c | 135 drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH iwl-next v3 09/12] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors

2024-04-03 Thread Mateusz Polchlopek
. Reviewed-by: Wojciech Drewek Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 354 +- drivers/net/ethernet/intel/iavf/iavf_txrx.h | 8 + drivers/net/ethernet/intel/iavf

Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix LAG and VF lock dependency in ice_reset_vf()

2024-04-09 Thread Mateusz Polchlopek
t); mutex_unlock(&pf->lag_mutex); + if (flags & ICE_VF_RESET_LOCK) + mutex_unlock(&vf->cfg_lock); + return err; } base-commit: 3ca3256cde596573d060eda8c477996435c6d63f Reviewed-by: Mateusz Polchlopek

Re: [Intel-wired-lan] [iwl-next v1 4/7] ice: allocate devlink for subfunction

2024-04-09 Thread Mateusz Polchlopek
On 4/8/2024 12:30 PM, Michal Swiatkowski wrote: From: Piotr Raczynski Make devlink allocation function generic to use it for PF and for SF. Add function for SF devlink port creation. It will be used in next patch. Signed-off-by: Piotr Raczynski Signed-off-by: Michal Swiatkowski --- ...

[Intel-wired-lan] [PATCH iwl-net v1] docs: update info about representor identification

2023-10-06 Thread Mateusz Polchlopek
Update the "How are representors identified?" documentation subchapter. For newer kernels driver developers should use SET_NETDEV_DEVLINK_PORT instead of ndo_get_devlink_port() callback. Signed-off-by: Mateusz Polchlopek Reviewed-by: Wojciech Drewek --- Documentation/

[Intel-wired-lan] [PATCH iwl-next v2 0/5] ice: Support 5 layer Tx scheduler topology

2023-10-06 Thread Mateusz Polchlopek
For performance reasons there is a need to have support for selectable Tx scheduler topology. Currently firmware supports only the default 9-layer and 5-layer topology. This patch series enables switch from default to 5-layer topology, if user decides to opt-in. --- v2: - updated documentation - r

[Intel-wired-lan] [PATCH iwl-net v2 1/5] ice: Support 5 layer topology

2023-10-06 Thread Mateusz Polchlopek
5. Reflect this on driver side. Signed-off-by: Raj Victor Co-developed-by: Michal Wilczynski Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 23 ++ drivers/net/ethernet/intel/ice/ice_common.c |

[Intel-wired-lan] [PATCH iwl-net v2 2/5] ice: Adjust the VSI/Aggregator layers

2023-10-06 Thread Mateusz Polchlopek
. It requires a readjustment of these VSI/Aggregator layer values. Signed-off-by: Raj Victor Co-developed-by: Michal Wilczynski Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_sched.c | 37

[Intel-wired-lan] [PATCH iwl-net v2 3/5] ice: Enable switching default Tx scheduler topology

2023-10-06 Thread Mateusz Polchlopek
ange in Tx topology is finished. To trigger the Tx change user selection should be changed in NVM using devlink. Then the platform should be rebooted. Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- d

[Intel-wired-lan] [PATCH iwl-net v2 4/5] ice: Add tx_scheduling_layers devlink param

2023-10-06 Thread Mateusz Polchlopek
: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 9 + drivers/net/ethernet/intel/ice/ice_devlink.c | 174 +- .../net/ethernet/intel/ice/ice_fw_update.c| 7 +- .../net/ethernet/intel/ice/ice_fw_update.h| 3 + drivers

[Intel-wired-lan] [PATCH iwl-net v2 5/5] ice: Document tx_scheduling_layers parameter

2023-10-06 Thread Mateusz Polchlopek
From: Michal Wilczynski New driver specific parameter 'tx_scheduling_layers' was introduced. Describe parameter in the documentation. Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- Doc

[Intel-wired-lan] [PATCH iwl-next v3 0/5] ice: Support 5 layer Tx scheduler topology

2023-10-09 Thread Mateusz Polchlopek
For performance reasons there is a need to have support for selectable Tx scheduler topology. Currently firmware supports only the default 9-layer and 5-layer topology. This patch series enables switch from default to 5-layer topology, if user decides to opt-in. --- v3: - fixed documentation warni

[Intel-wired-lan] [PATCH iwl-next v3 1/5] ice: Support 5 layer topology

2023-10-09 Thread Mateusz Polchlopek
5. Reflect this on driver side. Signed-off-by: Raj Victor Co-developed-by: Michal Wilczynski Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 23 ++ drivers/net/ethernet/intel/ice/ice_common.c |

[Intel-wired-lan] [PATCH iwl-next v3 3/5] ice: Enable switching default Tx scheduler topology

2023-10-09 Thread Mateusz Polchlopek
ange in Tx topology is finished. To trigger the Tx change user selection should be changed in NVM using devlink. Then the platform should be rebooted. Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- d

[Intel-wired-lan] [PATCH iwl-next v3 5/5] ice: Document tx_scheduling_layers parameter

2023-10-09 Thread Mateusz Polchlopek
From: Michal Wilczynski New driver specific parameter 'tx_scheduling_layers' was introduced. Describe parameter in the documentation. Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- Doc

[Intel-wired-lan] [PATCH iwl-next v3 4/5] ice: Add tx_scheduling_layers devlink param

2023-10-09 Thread Mateusz Polchlopek
: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 9 + drivers/net/ethernet/intel/ice/ice_devlink.c | 174 +- .../net/ethernet/intel/ice/ice_fw_update.c| 7 +- .../net/ethernet/intel/ice/ice_fw_update.h| 3 + drivers

[Intel-wired-lan] [PATCH iwl-next v3 2/5] ice: Adjust the VSI/Aggregator layers

2023-10-09 Thread Mateusz Polchlopek
. It requires a readjustment of these VSI/Aggregator layer values. Signed-off-by: Raj Victor Co-developed-by: Michal Wilczynski Signed-off-by: Michal Wilczynski Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_sched.c | 37

[Intel-wired-lan] [PATCH iwl-next v11 04/14] iavf: add support for negotiating flexible RXDID format

2024-10-14 Thread Mateusz Polchlopek
format. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 20 ++- drivers/net/ethernet/intel/iavf/iavf_main.c | 123

[Intel-wired-lan] [PATCH iwl-next v11 02/14] ice: support Rx timestamp on flex descriptor

2024-10-14 Thread Mateusz Polchlopek
timestamps that the stack expects. To convert 32b to 64b, we need a current PHC time. VIRTCHNL_OP_1588_PTP_GET_TIME is sent by the VF and responded by the PF with the current PHC time. Signed-off-by: Simei Su Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek

[Intel-wired-lan] [PATCH iwl-next v11 07/14] iavf: add support for indirect access to PHC time

2024-10-14 Thread Mateusz Polchlopek
Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +- drivers/net/ethernet/intel/iavf/iavf_ptp.c| 147 ++ drivers/net/ethernet/intel/iavf/iavf_ptp.h

[Intel-wired-lan] [PATCH iwl-next v11 08/14] iavf: periodically cache PHC time

2024-10-14 Thread Mateusz Polchlopek
time from the PF. The jitter and latency involved with this command aren't important, because the cached time just needs to be kept up to date within about ~2 seconds. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek S

[Intel-wired-lan] [PATCH iwl-next v11 09/14] libeth: move idpf_rx_csum_decoded and idpf_rx_extracted

2024-10-14 Thread Mateusz Polchlopek
Structs idpf_rx_csum_decoded and idpf_rx_extracted are used both in idpf and iavf Intel drivers. Change the prefix from idpf_* to libeth_* and move mentioned structs to libeth's rx.h header file. Adjust usage in idpf driver. Suggested-by: Alexander Lobakin Signed-off-by: Mateusz Polch

[Intel-wired-lan] [PATCH iwl-next v11 06/14] iavf: add initial framework for registering PTP clock

2024-10-14 Thread Mateusz Polchlopek
it would probably perform poorly due to the lack of direct time access. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Sai Krishna Reviewed-by: Simon Horman Co-developed-by: Ahmed Zaki Signed-off-by: Ahmed Zaki Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz

[Intel-wired-lan] [PATCH iwl-next v11 01/14] virtchnl: add support for enabling PTP on iAVF

2024-10-14 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 67 +++- 1 file changed, 66 insertions(+), 1 deletion

[Intel-wired-lan] [PATCH iwl-next v11 03/14] virtchnl: add enumeration for the rxdid format

2024-10-14 Thread Mateusz Polchlopek
Lobakin Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 50 +++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h index 2ae9b9ba2f1b..3a3265861e7b 100644 --- a/include/linux/avf

[Intel-wired-lan] [PATCH iwl-next v11 05/14] iavf: negotiate PTP capabilities

2024-10-14 Thread Mateusz Polchlopek
initialization. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 17 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 60

[Intel-wired-lan] [PATCH iwl-next v11 13/14] iavf: handle set and get timestamps ops

2024-10-14 Thread Mateusz Polchlopek
EOPNOTSUPP error code. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 21

[Intel-wired-lan] [PATCH iwl-next v11 00/14] Add support for Rx timestamping for both ice and iavf drivers

2024-10-14 Thread Mateusz Polchlopek
q to support legacy and flex descriptors iavf: handle set and get timestamps ops iavf: add support for Rx timestamps to hotpath Mateusz Polchlopek (3): libeth: move idpf_rx_csum_decoded and idpf_rx_extracted iavf: define Rx descriptors as qwords iavf: Implement checking DD desc fie

[Intel-wired-lan] [PATCH iwl-next v11 10/14] iavf: define Rx descriptors as qwords

2024-10-14 Thread Mateusz Polchlopek
. This commit changes the representation of iavf_32byte_rx_desc union to store four __le64 fields (qw0, qw1, qw2, qw3) that represent quad-words. Those quad-words will be then accessed by calling leXY_get_bits macros in upcoming commits. Suggested-by: Alexander Lobakin Signed-off-by: Mateusz

[Intel-wired-lan] [PATCH iwl-next v11 11/14] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors

2024-10-14 Thread Mateusz Polchlopek
. Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 354 ++-- drivers/net/ethernet/intel/iavf/iavf_type.h | 127 --- 2 files changed, 327 insertions(+), 154 deletions(-) diff

[Intel-wired-lan] [PATCH iwl-next v11 12/14] iavf: Implement checking DD desc field

2024-10-14 Thread Mateusz Polchlopek
at the very beginning, before extracting other fields. Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 54 - drivers/net/ethernet/intel/iavf/iavf_txrx.h

[Intel-wired-lan] [PATCH iwl-next v11 14/14] iavf: add support for Rx timestamps to hotpath

2024-10-14 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Sunil Goutham Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +++ drivers/net/ethernet/intel/iavf/iavf_ptp.c | 61 + d

[Intel-wired-lan] [PATCH iwl-next v12 08/14] iavf: periodically cache PHC time

2024-10-21 Thread Mateusz Polchlopek
time from the PF. The jitter and latency involved with this command aren't important, because the cached time just needs to be kept up to date within about ~2 seconds. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek S

[Intel-wired-lan] [PATCH iwl-next v12 11/14] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors

2024-10-21 Thread Mateusz Polchlopek
. Signed-off-by: Jacob Keller Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 354 ++-- drivers/net/ethernet/intel/iavf/iavf_type.h | 127 --- 2 files changed, 327 insertions(+), 154 deletions(-) diff

[Intel-wired-lan] [PATCH iwl-next v12 07/14] iavf: add support for indirect access to PHC time

2024-10-21 Thread Mateusz Polchlopek
Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +- drivers/net/ethernet/intel/iavf/iavf_ptp.c| 149 ++ drivers/net/ethernet/intel/iavf/iavf_ptp.h

[Intel-wired-lan] [PATCH iwl-next v12 12/14] iavf: Implement checking DD desc field

2024-10-21 Thread Mateusz Polchlopek
at the very beginning, before extracting other fields. Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 54 - drivers/net/ethernet/intel/iavf/iavf_txrx.h

[Intel-wired-lan] [PATCH iwl-next v12 10/14] iavf: define Rx descriptors as qwords

2024-10-21 Thread Mateusz Polchlopek
. This commit changes the representation of iavf_32byte_rx_desc union to store four __le64 fields (qw0, qw1, qw2, qw3) that represent quad-words. Those quad-words will be then accessed by calling leXY_get_bits macros in upcoming commits. Suggested-by: Alexander Lobakin Signed-off-by: Mateusz

[Intel-wired-lan] [PATCH iwl-next v12 04/14] iavf: add support for negotiating flexible RXDID format

2024-10-21 Thread Mateusz Polchlopek
format. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 20 ++- drivers/net/ethernet/intel/iavf/iavf_main.c | 123

[Intel-wired-lan] [PATCH iwl-next v12 14/14] iavf: add support for Rx timestamps to hotpath

2024-10-21 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Sunil Goutham Reviewed-by: Simon Horman Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +++ drivers/net/ethernet/intel/iavf/iavf_ptp.c | 61 + d

[Intel-wired-lan] [PATCH iwl-next v12 13/14] iavf: handle set and get timestamps ops

2024-10-21 Thread Mateusz Polchlopek
EOPNOTSUPP error code. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 21

[Intel-wired-lan] [PATCH iwl-next v12 09/14] libeth: move idpf_rx_csum_decoded and idpf_rx_extracted

2024-10-21 Thread Mateusz Polchlopek
Structs idpf_rx_csum_decoded and idpf_rx_extracted are used both in idpf and iavf Intel drivers. Change the prefix from idpf_* to libeth_* and move mentioned structs to libeth's rx.h header file. Adjust usage in idpf driver. Suggested-by: Alexander Lobakin Signed-off-by: Mateusz Polch

[Intel-wired-lan] [PATCH iwl-next v12 05/14] iavf: negotiate PTP capabilities

2024-10-21 Thread Mateusz Polchlopek
initialization. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 17 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 60

[Intel-wired-lan] [PATCH iwl-next v12 06/14] iavf: add initial framework for registering PTP clock

2024-10-21 Thread Mateusz Polchlopek
it would probably perform poorly due to the lack of direct time access. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Sai Krishna Reviewed-by: Simon Horman Co-developed-by: Ahmed Zaki Signed-off-by: Ahmed Zaki Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz

[Intel-wired-lan] [PATCH iwl-next v12 03/14] virtchnl: add enumeration for the rxdid format

2024-10-21 Thread Mateusz Polchlopek
Lobakin Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 50 +++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h index 56baf97c44d0..bc10e6ffa50b 100644 --- a/include/linux/avf

[Intel-wired-lan] [PATCH iwl-next v12 02/14] ice: support Rx timestamp on flex descriptor

2024-10-21 Thread Mateusz Polchlopek
timestamps that the stack expects. To convert 32b to 64b, we need a current PHC time. VIRTCHNL_OP_1588_PTP_GET_TIME is sent by the VF and responded by the PF with the current PHC time. Signed-off-by: Simei Su Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Co-developed-by: Mateusz Polchlopek

[Intel-wired-lan] [PATCH iwl-next v12 01/14] virtchnl: add support for enabling PTP on iAVF

2024-10-21 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 67 +++- 1 file changed, 66 insertions(+), 1 deletion

[Intel-wired-lan] [PATCH iwl-next v12 00/14] Add support for Rx timestamping for both ice and iavf drivers

2024-10-21 Thread Mateusz Polchlopek
acy and flex descriptors iavf: handle set and get timestamps ops iavf: add support for Rx timestamps to hotpath Mateusz Polchlopek (3): libeth: move idpf_rx_csum_decoded and idpf_rx_extracted iavf: define Rx descriptors as qwords iavf: Implement checking DD desc field Simei Su (1):

Re: [Intel-wired-lan] [PATCH iwl-net] ice: change q_index variable type to s16 to store -1 value

2024-11-04 Thread Mateusz Polchlopek
On 11/2/2024 3:38 PM, Simon Horman wrote: On Mon, Oct 28, 2024 at 12:59:22PM -0400, Mateusz Polchlopek wrote: Fix Flow Director not allowing to re-map traffic to 0th queue when action is configured to drop (and vice versa). The current implementation of ethtool callback in the ice driver

[Intel-wired-lan] [PATCH iwl-net] ice: change q_index variable type to s16 to store -1 value

2024-10-28 Thread Mateusz Polchlopek
he variable value is overwritten in the function. Fixes: cac2a27cd9ab ("ice: Support IPv4 Flow Director filters") Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c | 3 ++- drivers/net/ethernet/intel/ice/ice_fdir.h

Re: [Intel-wired-lan] [PATCH iwl-next v10 07/14] iavf: add support for indirect access to PHC time

2024-10-01 Thread Mateusz Polchlopek
On 8/21/2024 4:31 PM, Alexander Lobakin wrote: From: Wojciech Drewek Date: Wed, 21 Aug 2024 14:15:32 +0200 From: Jacob Keller Implement support for reading the PHC time indirectly via the VIRTCHNL_OP_1588_PTP_GET_TIME operation. [...] +/** + * iavf_queue_ptp_cmd - Queue PTP command fo

[Intel-wired-lan] [PATCH iwl-next 1/2] ice: rework of dump serdes equalizer values feature

2024-10-01 Thread Mateusz Polchlopek
readability purposes. Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 93 ++-- drivers/net/ethernet/intel/ice/ice_ethtool.h | 22 ++--- 2 files changed, 38 insertions(+), 77 deletions(-) diff --git a/drivers/net

[Intel-wired-lan] [PATCH iwl-next 2/2] ice: extend dump serdes equalizer values feature

2024-10-01 Thread Mateusz Polchlopek
to gather information about configuration and status to debug link and connection issues in the field. Reviewed-by: Przemek Kitszel Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_adminq_cmd.h | 17 + drivers/net/ethernet/intel/ice/ice_ethtool

[Intel-wired-lan] [PATCH iwl-next 0/2] Extend the dump serdes equalizer values feature

2024-10-01 Thread Mateusz Polchlopek
Extend the work done in commit 70838938e89c ("ice: Implement driver functionality to dump serdes equalizer values") by refactor the ice_get_tx_rx_equa() function, shorten struct fields names and add new Rx registers that can be read using command: $ ethtool -d interface_name. Mateusz

[Intel-wired-lan] [PATCH iwl-next v13 05/14] iavf: negotiate PTP capabilities

2024-11-06 Thread Mateusz Polchlopek
initialization. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 17 +- drivers/net/ethernet/intel/iavf

[Intel-wired-lan] [PATCH iwl-next v13 06/14] iavf: add initial framework for registering PTP clock

2024-11-06 Thread Mateusz Polchlopek
Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/Kconfig| 1 + drivers/net/ethernet/intel/iavf/Makefile | 2 + drivers/net/ethernet/intel/iavf/iavf_main.c | 6 + drivers/net/ethernet/intel/iavf/iavf_ptp.c| 122 ++ drivers/net

[Intel-wired-lan] [PATCH iwl-next v13 03/14] virtchnl: add enumeration for the rxdid format

2024-11-06 Thread Mateusz Polchlopek
Lobakin Tested-by: Rafal Romanowski Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 50 +++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h index 56baf97c44d0..bc10e6ffa50b

[Intel-wired-lan] [PATCH iwl-next v13 14/14] iavf: add support for Rx timestamps to hotpath

2024-11-06 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Sunil Goutham Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +++ drivers/net/ethernet/intel/iavf/iavf_p

[Intel-wired-lan] [PATCH iwl-next v13 00/14] Add support for Rx timestamping for both ice and iavf drivers

2024-11-06 Thread Mateusz Polchlopek
s iavf: handle set and get timestamps ops iavf: add support for Rx timestamps to hotpath Mateusz Polchlopek (3): libeth: move idpf_rx_csum_decoded and idpf_rx_extracted iavf: define Rx descriptors as qwords iavf: Implement checking DD desc field Simei Su (1): ice: support Rx timestamp

[Intel-wired-lan] [PATCH iwl-next v13 08/14] iavf: periodically cache PHC time

2024-11-06 Thread Mateusz Polchlopek
ed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_ptp.c | 53 ++ 1 file changed, 53 insertions(+) diff --git a/drivers/net/ethernet/intel/iavf/iavf_ptp.c b/drivers/net/ethernet/intel/iavf/iavf_ptp.c index b9a341e

[Intel-wired-lan] [PATCH iwl-next v13 04/14] iavf: add support for negotiating flexible RXDID format

2024-11-06 Thread Mateusz Polchlopek
format. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h| 20 ++- drivers/net/ethernet/intel/iavf

[Intel-wired-lan] [PATCH iwl-next v13 13/14] iavf: handle set and get timestamps ops

2024-11-06 Thread Mateusz Polchlopek
EOPNOTSUPP error code. Signed-off-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Tested-by: Rafal Romanowski Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH iwl-next v13 02/14] ice: support Rx timestamp on flex descriptor

2024-11-06 Thread Mateusz Polchlopek
-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_base.c | 3 - drivers/net/ethernet/intel/ice/ice_lib.c | 5 +- drivers/net/ethernet/intel/ice/ice_ptp.c | 4 +- drivers/net/ethernet/intel/ice/ice_ptp.h | 8 ++ drivers/net

[Intel-wired-lan] [PATCH iwl-next v13 11/14] iavf: refactor iavf_clean_rx_irq to support legacy and flex descriptors

2024-11-06 Thread Mateusz Polchlopek
. Signed-off-by: Jacob Keller Tested-by: Rafal Romanowski Co-developed-by: Mateusz Polchlopek Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 354 ++-- drivers/net/ethernet/intel/iavf/iavf_type.h | 127 --- 2 files changed, 327 insertions

[Intel-wired-lan] [PATCH iwl-next v13 07/14] iavf: add support for indirect access to PHC time

2024-11-06 Thread Mateusz Polchlopek
Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 +- drivers/net/ethernet/intel/iavf/iavf_ptp.c| 149 ++ drivers/net

[Intel-wired-lan] [PATCH iwl-next v13 10/14] iavf: define Rx descriptors as qwords

2024-11-06 Thread Mateusz Polchlopek
Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf.h | 2 +- drivers/net/ethernet/intel/iavf/iavf_trace.h | 6 +- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 56 - drivers/net/ethernet/intel/iavf/iavf_txrx.h | 7 +- drivers/net/ethernet/intel/iavf

[Intel-wired-lan] [PATCH iwl-next v13 12/14] iavf: Implement checking DD desc field

2024-11-06 Thread Mateusz Polchlopek
at the very beginning, before extracting other fields. Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 54 - drivers/net

[Intel-wired-lan] [PATCH iwl-next v13 09/14] libeth: move idpf_rx_csum_decoded and idpf_rx_extracted

2024-11-06 Thread Mateusz Polchlopek
igned-off-by: Mateusz Polchlopek --- .../ethernet/intel/idpf/idpf_singleq_txrx.c | 51 ++- drivers/net/ethernet/intel/idpf/idpf_txrx.c | 16 +++--- drivers/net/ethernet/intel/idpf/idpf_txrx.h | 19 --- include/net/libeth/rx.h | 47 + 4

[Intel-wired-lan] [PATCH iwl-next v13 01/14] virtchnl: add support for enabling PTP on iAVF

2024-11-06 Thread Mateusz Polchlopek
-by: Jacob Keller Reviewed-by: Wojciech Drewek Reviewed-by: Rahul Rameshbabu Reviewed-by: Simon Horman Reviewed-by: Alexander Lobakin Tested-by: Rafal Romanowski Signed-off-by: Mateusz Polchlopek --- include/linux/avf/virtchnl.h | 67 +++- 1 file changed, 66

[Intel-wired-lan] [PATCH iwl-next v1] ice: Extend ethtool reset support

2024-12-03 Thread Mateusz Polchlopek
Extend the job done in: commit b699c81af068 ("ice: Implement ethtool reset support") by adding ethtool reset function for safe mode ops structure. Suggested-by: Przemek Kitszel Reviewed-by: Martyna Szapar-Mudlaw Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet

[Intel-wired-lan] [PATCH iwl-net v1] ice: move static_assert to declaration section

2024-12-04 Thread Mateusz Polchlopek
: fix memleak in ice_init_tx_topology()") Reviewed-by: Marcin Szycik Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_ddp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ddp.c b/drivers/net/ethernet/intel/ice

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: move static_assert to declaration section

2024-12-09 Thread Mateusz Polchlopek
On 12/5/2024 2:18 PM, Mateusz Polchlopek wrote: On 12/4/2024 4:05 PM, Paul Menzel wrote: Dear Mateusz, Thank you for the patch. Am 04.12.24 um 16:02 schrieb Mateusz Polchlopek: static_assert() needs to be placed in the declaration section, so move it there in ice_cfg_tx_topo() function

[Intel-wired-lan] [PATCH iwl-net v1] ice: remove invalid parameter of equalizer

2024-12-31 Thread Mateusz Polchlopek
be stored. Remove mentioned parameter to prevent return of corrupted data to userspace. Fixes: 70838938e89c ("ice: Implement driver functionality to dump serdes equalizer values") Signed-off-by: Mateusz Polchlopek --- drivers/net/ethernet/intel/ice/ice_adminq_cmd.h | 1 - drivers/ne

Re: [Intel-wired-lan] [PATCH iwl-next v2] ixgbe: add support for thermal sensor event reception

2025-02-04 Thread Mateusz Polchlopek
ixgbe_aci_opc_temp_tca_event= 0x0C94, + /* debug commands */ ixgbe_aci_opc_debug_dump_internals = 0xFF08, Thanks for this change Jedrzej Reviewed-by: Mateusz Polchlopek

[Intel-wired-lan] [PATCH iwl-next] fixup! devlink: add devlink_fmsg_dump_skb() function

2024-12-10 Thread Mateusz Polchlopek
nt version is here: https://lore.kernel.org/netdev/20240821133714.61417-1-przemyslaw.kits...@intel.com/ Thanks in advance Mateusz CC: Simon Horman Signed-off-by: Mateusz Polchlopek --- net/devlink/health.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/devlink/heal

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: move static_assert to declaration section

2024-12-05 Thread Mateusz Polchlopek
On 12/4/2024 4:05 PM, Paul Menzel wrote: Dear Mateusz, Thank you for the patch. Am 04.12.24 um 16:02 schrieb Mateusz Polchlopek: static_assert() needs to be placed in the declaration section, so move it there in ice_cfg_tx_topo() function. Current code causes following warnings on some

[Intel-wired-lan] [PATCH iwl-next v1] ice: refactor ice_fdir_create_dflt_rules() function

2025-01-17 Thread Mateusz Polchlopek
ice_create_init_fdir_rule() in the loop. It makes it easy to extend the list of default rules in the future, without the need of duplicate code more and more. Reviewed-by: Michal Swiatkowski Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/ice_ethtool_fdir.c | 21

[Intel-wired-lan] [PATCH iwl-next v2] idpf: assign extracted ptype to struct libeth_rqe_info field

2025-03-01 Thread Mateusz Polchlopek
Reviewed-by: Alexander Lobakin Signed-off-by: Mateusz Polchlopek --- v2: removed excess function parameter 'ptype' description in idpf_rx_singleq_extract_fields() - reported by kernel bot. No code or functional changes. v1: initial patch https://lore.kernel.org/netdev/2025022712383

[Intel-wired-lan] [PATCH iwl-next v1] ice: refactor the Tx scheduler feature

2025-02-26 Thread Mateusz Polchlopek
ogy(). Suggested-by: Marcin Szycik Reviewed-by: Michal Swiatkowski Reviewed-by: Jedrzej Jagielski Reviewed-by: Przemek Kitszel Reviewed-by: Aleksandr Loktionov Signed-off-by: Mateusz Polchlopek --- .../net/ethernet/intel/ice/devlink/devlink.c | 56 +++ drivers/net/ethernet

[Intel-wired-lan] [PATCH iwl-next v1] idpf: assign extracted ptype to struct libeth_rqe_info field

2025-02-27 Thread Mateusz Polchlopek
Reviewed-by: Alexander Lobakin Signed-off-by: Mateusz Polchlopek --- .../ethernet/intel/idpf/idpf_singleq_txrx.c | 24 +-- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c b/drivers/net/ethernet/intel/idpf

<    1   2   3