[PATCH v3 10/22] common/idpf: update mask of Rx FLEX DESC ADV FF1 M

2024-06-11 Thread Soumyadeep Hore
Mask for VIRTCHNL2_RX_FLEX_DESC_ADV_FF1_M was defined wrongly and this patch fixes it. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2_lan_desc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2_lan_desc.h b/drivers

[PATCH v3 11/22] common/idpf: use 'pad' and 'reserved' fields appropriately

2024-06-11 Thread Soumyadeep Hore
'pad' naming is used if the field is actually a padding byte and is also used for bytes meant for future addition of new fields, whereas 'reserved' is only used if the field is reserved and cannot be used for any other purpose. Signed-off-by: Soumyadeep Hore --- driv

[PATCH v3 12/22] common/idpf: move related defines into enums

2024-06-11 Thread Soumyadeep Hore
variable names modified and comments updated in descriptive way. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 1847 ++--- drivers/common/idpf/base/virtchnl2_lan_desc.h | 843 +--- 2 files changed, 1686 insertions(+), 1004 deletions(-) diff --git a

[PATCH v3 13/22] common/idpf: avoid variable 0-init

2024-06-11 Thread Soumyadeep Hore
Don't initialize the variables if not needed. Also use 'err' instead of 'status', 'ret_code', 'ret' etc. for consistency and change the return label 'sq_send_command_out' to 'err_unlock'. Signed-off-by: Soumyad

[PATCH v3 14/22] common/idpf: update in PTP message validation

2024-06-11 Thread Soumyadeep Hore
When the message for getting timestamp latches is sent by the driver, number of latches is equal to 0. Current implementation of message validation function incorrectly notifies this kind of message length as invalid. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 4

[PATCH v3 15/22] common/idpf: rename INLINE FLOW STEER to FLOW STEER

2024-06-11 Thread Soumyadeep Hore
This capability bit indicates both inline as well as side band flow steering capability. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base

[PATCH v3 16/22] common/idpf: add wmb before tail

2024-06-11 Thread Soumyadeep Hore
Introduced through customer's feedback in their attempt to address some bugs this introduces a memory barrier before posting ctlq tail. This makes sure memory writes have a chance to take place before HW starts messing with the descriptors. Signed-off-by: Soumyadeep Hore --- drivers/common

[PATCH v3 17/22] drivers: add flex array support and fix issues

2024-06-11 Thread Soumyadeep Hore
fields for the dynamic sized structures. Some fixes based on code change is introduced to compile dpdk. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 466 - drivers/common/idpf/idpf_common_virtchnl.c | 2 +- drivers/net/cpfl/cpfl_ethdev.c

[PATCH v3 18/22] common/idpf: enable flow steer capability for vports

2024-06-11 Thread Soumyadeep Hore
Added virtchnl2_flow_types to be used for flow steering. Added flow steer cap flags for vport create. Add flow steer flow types and action types for vport create. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 60 ++-- 1 file changed, 57

[PATCH v3 19/22] common/idpf: add a new Tx context descriptor structure

2024-06-11 Thread Soumyadeep Hore
Adding a new structure for the context descriptor that contains the support for timesync packets, where the index for timestamping is set. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_lan_txrx.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff

[PATCH v3 21/22] drivers: adding type to idpf vc queue switch

2024-06-11 Thread Soumyadeep Hore
Adding an argument named type to define queue type in idpf_vc_queue_switch(). This solves the issue of improper queue type in virtchnl2 message. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/idpf_common_virtchnl.c | 8 ++-- drivers/common/idpf/idpf_common_virtchnl.h | 2

[PATCH v3 20/22] common/idpf: remove idpf common file

2024-06-11 Thread Soumyadeep Hore
The file is redundant in our implementation and is not required further. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 382 - drivers/common/idpf/base/meson.build | 1 - 2 files changed, 383 deletions(-) delete mode 100644 drivers

[PATCH v3 22/22] doc: updated the documentation for cpfl PMD

2024-06-11 Thread Soumyadeep Hore
Updated the latest support for CPFL PMD in MEV TS firmware version 1.4. Signed-off-by: Soumyadeep Hore --- doc/guides/nics/cpfl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst index 9b7a99c894..528c809819 100644 --- a/doc/guides/nics

[PATCH v4 01/21] common/idpf: updated IDPF VF device ID

2024-06-18 Thread Soumyadeep Hore
Update IDPF VF device id to 145C. Also added device ID for S-IOV device. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_devids.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/common/idpf/base/idpf_devids.h b/drivers/common/idpf/base

[PATCH v4 00/21] Update MEV TS Base Driver

2024-06-18 Thread Soumyadeep Hore
implementation based on review comments - Fixed compilation errors for Windows, Alpine and FreeBSD --- Soumyadeep Hore (21): common/idpf: updated IDPF VF device ID common/idpf: added new virtchnl2 capability and vport flag common/idpf: moved the idpf HW into API header file common/idpf

[PATCH v4 02/21] common/idpf: added new virtchnl2 capability and vport flag

2024-06-18 Thread Soumyadeep Hore
Removed unused VIRTCHNL2_CAP_ADQ capability and use that bit for VIRTCHNL2_CAP_INLINE_FLOW_STEER capability. Added VIRTCHNL2_VPORT_INLINE_FLOW_STEER_ENA port flag to allow enable/disable per vport. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 7 --- 1 file

[PATCH v4 03/21] common/idpf: moved the idpf HW into API header file

2024-06-18 Thread Soumyadeep Hore
definition from controlq.h into api.h resolves the problem. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 4 +- drivers/common/idpf/base/idpf_controlq.h | 107 +-- drivers/common/idpf/base/idpf_controlq_api.h | 35 ++ drivers/common/idpf

[PATCH v4 04/21] common/idpf: avoid defensive programming

2024-06-18 Thread Soumyadeep Hore
after the idpf_ctlq_shutdown call, there is no need to have the ring_size check in idpf_ctlq_shutdown. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_controlq.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/common/idpf/base/idpf_controlq.c b/drivers/common/idpf

[PATCH v4 05/21] common/idpf: use BIT ULL for large bitmaps

2024-06-18 Thread Soumyadeep Hore
For bitmaps greater than 32 bits, use BIT_ULL instead of BIT macro as reported by compiler. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 70 ++-- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/common/idpf/base

[PATCH v4 06/21] common/idpf: convert data type to 'le'

2024-06-18 Thread Soumyadeep Hore
'u32' data type is used for the struct members in 'virtchnl2_version_info' which should be '__le32'. Make the change accordingly. It is a Little Endian specific type defination. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 4 ++-- 1 fi

[PATCH v4 07/21] common/idpf: compress RXDID mask definitions

2024-06-18 Thread Soumyadeep Hore
Instead of using the long RXDID definitions, introduce a macro which uses common part of the RXDID definitions i.e. VIRTCHNL2_RXDID_ and the bit passed to generate a mask. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2_lan_desc.h | 31 ++- 1 file changed

[PATCH v4 08/21] common/idpf: refactor size check macro

2024-06-18 Thread Soumyadeep Hore
Instead of using 'divide by 0' to check the struct length, use the static_assert macro Removed redundant CHECK_UNION_LEN macro. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git

[PATCH v4 09/21] common/idpf: update mask of Rx FLEX DESC ADV FF1 M

2024-06-18 Thread Soumyadeep Hore
Mask for VIRTCHNL2_RX_FLEX_DESC_ADV_FF1_M was defined wrongly and this patch fixes it. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2_lan_desc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2_lan_desc.h b/drivers

[PATCH v4 10/21] common/idpf: use 'pad' and 'reserved' fields appropriately

2024-06-18 Thread Soumyadeep Hore
'pad' naming is used if the field is actually a padding byte and is also used for bytes meant for future addition of new fields, whereas 'reserved' is only used if the field is reserved and cannot be used for any other purpose. Signed-off-by: Soumyadeep Hore --- driv

[PATCH v4 11/21] common/idpf: move related defines into enums

2024-06-18 Thread Soumyadeep Hore
variable names modified and comments updated in descriptive way. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 1847 ++--- drivers/common/idpf/base/virtchnl2_lan_desc.h | 843 +--- 2 files changed, 1686 insertions(+), 1004 deletions(-) diff --git a

[PATCH v4 12/21] common/idpf: avoid variable 0-init

2024-06-18 Thread Soumyadeep Hore
Don't initialize the variables if not needed. Also use 'err' instead of 'status', 'ret_code', 'ret' etc. for consistency and change the return label 'sq_send_command_out' to 'err_unlock'. Signed-off-by: Soumyad

[PATCH v4 13/21] common/idpf: update in PTP message validation

2024-06-18 Thread Soumyadeep Hore
When the message for getting timestamp latches is sent by the driver, number of latches is equal to 0. Current implementation of message validation function incorrectly notifies this kind of message length as invalid. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 4

[PATCH v4 14/21] common/idpf: rename INLINE FLOW STEER to FLOW STEER

2024-06-18 Thread Soumyadeep Hore
This capability bit indicates both inline as well as side band flow steering capability. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base

[PATCH v4 15/21] common/idpf: add wmb before tail

2024-06-18 Thread Soumyadeep Hore
Introduced through customer's feedback in their attempt to address some bugs this introduces a memory barrier before posting ctlq tail. This makes sure memory writes have a chance to take place before HW starts messing with the descriptors. Signed-off-by: Soumyadeep Hore --- drivers/common

[PATCH v4 16/21] drivers: add flex array support and fix issues

2024-06-18 Thread Soumyadeep Hore
fields for the dynamic sized structures. Some fixes based on code change is introduced to compile dpdk. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 466 - drivers/common/idpf/idpf_common_virtchnl.c | 2 +- drivers/net/cpfl/cpfl_ethdev.c

[PATCH v4 17/21] common/idpf: enable flow steer capability for vports

2024-06-18 Thread Soumyadeep Hore
Added virtchnl2_flow_types to be used for flow steering. Added flow steer cap flags for vport create. Add flow steer flow types and action types for vport create. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 60 ++-- 1 file changed, 57

[PATCH v4 18/21] common/idpf: add a new Tx context descriptor structure

2024-06-18 Thread Soumyadeep Hore
Adding a new structure for the context descriptor that contains the support for timesync packets, where the index for timestamping is set. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_lan_txrx.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff

[PATCH v4 20/21] drivers: adding type to idpf vc queue switch

2024-06-18 Thread Soumyadeep Hore
Adding an argument named type to define queue type in idpf_vc_queue_switch(). This solves the issue of improper queue type in virtchnl2 message. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/idpf_common_virtchnl.c | 8 ++-- drivers/common/idpf/idpf_common_virtchnl.h | 2

[PATCH v4 19/21] common/idpf: remove idpf common file

2024-06-18 Thread Soumyadeep Hore
The file is redundant in our implementation and is not required further. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 382 - drivers/common/idpf/base/meson.build | 1 - 2 files changed, 383 deletions(-) delete mode 100644 drivers

[PATCH v4 21/21] doc: updated the documentation for cpfl PMD

2024-06-18 Thread Soumyadeep Hore
Updated the latest support for cpfl pmd in MEV TS firmware version which is 1.4. Signed-off-by: Soumyadeep Hore --- doc/guides/nics/cpfl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst index 9b7a99c894..528c809819 100644 --- a/doc

[PATCH v5 00/21] Update MEV TS Base Driver

2024-06-24 Thread Soumyadeep Hore
comments - Fixed compilation errors for Windows, Alpine and FreeBSD --- Soumyadeep Hore (21): common/idpf: updated IDPF VF device ID common/idpf: added new virtchnl2 capability and vport flag common/idpf: moved the idpf HW into API header file common/idpf: avoid defensive programming common

[PATCH v5 01/21] common/idpf: updated IDPF VF device ID

2024-06-24 Thread Soumyadeep Hore
Update IDPF VF device id to 145C. Also added device ID for S-IOV device. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_devids.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/common/idpf/base/idpf_devids.h b/drivers/common/idpf/base

[PATCH v5 02/21] common/idpf: added new virtchnl2 capability and vport flag

2024-06-24 Thread Soumyadeep Hore
Removed unused VIRTCHNL2_CAP_ADQ capability and use that bit for VIRTCHNL2_CAP_INLINE_FLOW_STEER capability. Added VIRTCHNL2_VPORT_INLINE_FLOW_STEER_ENA port flag to allow enable/disable per vport. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 7 --- 1 file

[PATCH v5 03/21] common/idpf: moved the idpf HW into API header file

2024-06-24 Thread Soumyadeep Hore
definition from controlq.h into api.h resolves the problem. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 4 +- drivers/common/idpf/base/idpf_controlq.h | 107 +-- drivers/common/idpf/base/idpf_controlq_api.h | 35 ++ drivers/common/idpf

[PATCH v5 04/21] common/idpf: avoid defensive programming

2024-06-24 Thread Soumyadeep Hore
after the idpf_ctlq_shutdown call, there is no need to have the ring_size check in idpf_ctlq_shutdown. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_controlq.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/common/idpf/base/idpf_controlq.c b/drivers/common/idpf

[PATCH v5 05/21] common/idpf: use BIT ULL for large bitmaps

2024-06-24 Thread Soumyadeep Hore
For bitmaps greater than 32 bits, use BIT_ULL instead of BIT macro as reported by compiler. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 70 ++-- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/common/idpf/base

[PATCH v5 06/21] common/idpf: convert data type to 'le'

2024-06-24 Thread Soumyadeep Hore
'u32' data type is used for the struct members in 'virtchnl2_version_info' which should be '__le32'. Make the change accordingly. It is a Little Endian specific type definition. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 4 ++-- 1 fi

[PATCH v5 07/21] common/idpf: compress RXDID mask definitions

2024-06-24 Thread Soumyadeep Hore
Instead of using the long RXDID definitions, introduce a macro which uses common part of the RXDID definitions i.e. VIRTCHNL2_RXDID_ and the bit passed to generate a mask. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2_lan_desc.h | 31 ++- 1 file changed

[PATCH v5 08/21] common/idpf: refactor size check macro

2024-06-24 Thread Soumyadeep Hore
Instead of using 'divide by 0' to check the struct length, use the static_assert macro Removed redundant CHECK_UNION_LEN macro. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git

[PATCH v5 09/21] common/idpf: update mask of Rx FLEX DESC ADV FF1 M

2024-06-24 Thread Soumyadeep Hore
Mask for VIRTCHNL2_RX_FLEX_DESC_ADV_FF1_M was defined wrongly and this patch fixes it. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2_lan_desc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2_lan_desc.h b/drivers

[PATCH v5 12/21] common/idpf: avoid variable 0-init

2024-06-24 Thread Soumyadeep Hore
Don't initialize the variables if not needed. Also use 'err' instead of 'status', 'ret_code', 'ret' etc. for consistency and change the return label 'sq_send_command_out' to 'err_unlock'. Signed-off-by: Soumyad

[PATCH v5 13/21] common/idpf: update in PTP message validation

2024-06-24 Thread Soumyadeep Hore
When the message for getting timestamp latches is sent by the driver, number of latches is equal to 0. Current implementation of message validation function incorrectly notifies this kind of message length as invalid. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 4

[PATCH v5 14/21] common/idpf: rename INLINE FLOW STEER to FLOW STEER

2024-06-24 Thread Soumyadeep Hore
This capability bit indicates both inline as well as side band flow steering capability. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base

[PATCH v5 15/21] common/idpf: add wmb before tail

2024-06-24 Thread Soumyadeep Hore
Introduced through customer's feedback in their attempt to address some bugs this introduces a memory barrier before posting ctlq tail. This makes sure memory writes have a chance to take place before HW starts messing with the descriptors. Signed-off-by: Soumyadeep Hore --- drivers/common

[PATCH v5 16/21] drivers: add flex array support and fix issues

2024-06-24 Thread Soumyadeep Hore
fields for the dynamic sized structures. Some fixes based on code change is introduced to compile dpdk. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 466 - drivers/common/idpf/idpf_common_virtchnl.c | 2 +- drivers/net/cpfl/cpfl_ethdev.c

[PATCH v5 17/21] common/idpf: enable flow steer capability for vports

2024-06-24 Thread Soumyadeep Hore
Added virtchnl2_flow_types to be used for flow steering. Added flow steer cap flags for vport create. Add flow steer flow types and action types for vport create. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 60 ++-- 1 file changed, 57

[PATCH v5 10/21] common/idpf: use 'pad' and 'reserved' fields appropriately

2024-06-24 Thread Soumyadeep Hore
'pad' naming is used if the field is actually a padding byte and is also used for bytes meant for future addition of new fields, whereas 'reserved' is only used if the field is reserved and cannot be used for any other purpose. Signed-off-by: Soumyadeep Hore --- driv

[PATCH v5 11/21] common/idpf: move related defines into enums

2024-06-24 Thread Soumyadeep Hore
variable names modified and comments updated in descriptive way. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 1847 ++--- drivers/common/idpf/base/virtchnl2_lan_desc.h | 843 +--- 2 files changed, 1686 insertions(+), 1004 deletions(-) diff --git a

[PATCH v5 18/21] common/idpf: add a new Tx context descriptor structure

2024-06-24 Thread Soumyadeep Hore
Adding a new structure for the context descriptor that contains the support for timesync packets, where the index for timestamping is set. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_lan_txrx.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff

[PATCH v5 19/21] common/idpf: remove idpf common file

2024-06-24 Thread Soumyadeep Hore
The file is redundant in our implementation and is not required further. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 382 - drivers/common/idpf/base/meson.build | 1 - 2 files changed, 383 deletions(-) delete mode 100644 drivers

[PATCH v5 20/21] drivers: adding type to idpf vc queue switch

2024-06-24 Thread Soumyadeep Hore
Adding an argument named type to define queue type in idpf_vc_queue_switch(). This solves the issue of improper queue type in virtchnl2 message. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/idpf_common_virtchnl.c | 8 ++-- drivers/common/idpf/idpf_common_virtchnl.h | 2

[PATCH v5 21/21] doc: updated the documentation for cpfl PMD

2024-06-24 Thread Soumyadeep Hore
Updated the latest support for cpfl pmd in MEV TS firmware version which is 1.4. Signed-off-by: Soumyadeep Hore --- doc/guides/nics/cpfl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst index 9b7a99c894..528c809819 100644 --- a/doc

[PATCH v6 1/7] common/idpf: add wmb before tail

2024-07-01 Thread Soumyadeep Hore
Adds the memory barrier properly before posting ctlq tail. This makes sure memory writes have a chance to take place before HW starts messing with the descriptors. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_controlq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v6 0/7] Update MEV TS Base Driver

2024-07-01 Thread Soumyadeep Hore
- Updated documentation relating to MEV TS FW release --- v2: - Changed implementation based on review comments - Fixed compilation errors for Windows, Alpine and FreeBSD --- Soumyadeep Hore (7): common/idpf: add wmb before tail drivers: adding macros for dynamic data structures common/idpf

[PATCH v6 2/7] drivers: adding macros for dynamic data structures

2024-07-01 Thread Soumyadeep Hore
: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 457 +++-- drivers/common/idpf/idpf_common_virtchnl.c | 2 +- drivers/net/cpfl/cpfl_ethdev.c | 28 +- 3 files changed, 77 insertions(+), 410 deletions(-) diff --git a/drivers/common/idpf/base

[PATCH v6 3/7] common/idpf: enable flow steer capability for vports

2024-07-01 Thread Soumyadeep Hore
Added virtchnl2_flow_types to be used for flow steering. Added flow steer cap flags for vport create. Add flow steer flow types and action types for vport create. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 60 ++-- 1 file changed, 57

[PATCH v6 4/7] common/idpf: add a new Tx context descriptor structure

2024-07-01 Thread Soumyadeep Hore
Adding a new structure for the context descriptor that contains the support for timesync packets, where the index for timestamping is set. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_lan_txrx.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff

[PATCH v6 5/7] common/idpf: remove idpf common file

2024-07-01 Thread Soumyadeep Hore
The file is redundant in our implementation and is not required further. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/idpf_common.c | 382 - drivers/common/idpf/base/meson.build | 1 - 2 files changed, 383 deletions(-) delete mode 100644 drivers

[PATCH v6 6/7] drivers: adding config queue types for virtchnl2 message

2024-07-01 Thread Soumyadeep Hore
Adding an argument named type to define queue type in idpf_vc_queue_switch(). This solves the issue of improper queue type in virtchnl2 message. Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/idpf_common_virtchnl.c | 8 ++-- drivers/common/idpf/idpf_common_virtchnl.h | 2

[PATCH v6 7/7] doc: updated the documentation for cpfl PMD

2024-07-01 Thread Soumyadeep Hore
Updated the latest support for cpfl pmd in MEV TS firmware version which is 1.4. Signed-off-by: Soumyadeep Hore --- doc/guides/nics/cpfl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst index 9b7a99c894..528c809819 100644 --- a/doc

[PATCH v1] net/cpfl: add checks for received ctlq messages

2024-07-03 Thread Soumyadeep Hore
cpfl_process_rx_ctlq_msg() is used to check error status returned for specific opcodes. Previously error codes were only -ve for cpfl_receive_ctlq_msg() but now there are +ve error codes. Hence code changes are made accordingly. Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl

[PATCH v2 0/2] Avoid rule duplication in CPFL PMD

2024-07-04 Thread Soumyadeep Hore
This patchset avoids flow rule duplication which was possible previously in CPFL PMD. --- v2: * Addressed review comments * Added Fixes tags * Fixed CI warnings --- Soumyadeep Hore (2): net/cpfl: fix check for opcodes of received ctlq messages net/cpfl: fix +ve error codes for received ctlq

[PATCH v2 1/2] net/cpfl: fix check for opcodes of received ctlq messages

2024-07-04 Thread Soumyadeep Hore
cpfl_process_rx_ctlq_msg() is used to check error status returned for specific opcodes and return error messages accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl/cpfl_

[PATCH v2 2/2] net/cpfl: fix +ve error codes for received ctlq messages

2024-07-04 Thread Soumyadeep Hore
Previously error codes were only -ve for cpfl_receive_ctlq_msg() but now there are +ve error codes. Hence code changes are made accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- driver

[PATCH v3 1/2] net/cpfl: fix check for opcodes of received ctlq messages

2024-07-05 Thread Soumyadeep Hore
cpfl_process_rx_ctlq_msg() is used to check error status returned for specific opcodes and return error messages accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl/cpfl_

[PATCH v3 0/2] Avoid rule duplication in CPFL PMD

2024-07-05 Thread Soumyadeep Hore
This patchset avoids flow rule duplication which was possible previously in CPFL PMD. --- v2: * Addressed review comments * Added Fixes tags * Fixed CI warnings --- v3: * Addressed pending review comments --- Soumyadeep Hore (2): net/cpfl: fix check for opcodes of received ctlq messages net

[PATCH v3 2/2] net/cpfl: fix +ve error codes for received ctlq messages

2024-07-05 Thread Soumyadeep Hore
Previously error codes were only -ve for cpfl_receive_ctlq_msg() but now there are +ve error codes. Hence code changes are made accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- driver

[PATCH v4 0/2] Avoid rule duplication in CPFL PMD

2024-07-05 Thread Soumyadeep Hore
This patchset avoids flow rule duplication which was possible previously in CPFL PMD. --- v4: * Addressed pending review comments --- v3: * Addressed pending review comments --- v2: * Addressed review comments * Added Fixes tags * Fixed CI warnings --- Soumyadeep Hore (2): net/cpfl: fix check

[PATCH v4 1/2] net/cpfl: fix check for opcodes of received ctlq messages

2024-07-05 Thread Soumyadeep Hore
Include checks for error status returned for specific opcodes and display error messages accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl/cpfl_fxp_rule.c | 8 d

[PATCH v4 2/2] net/cpfl: fix +ve error codes for received ctlq messages

2024-07-05 Thread Soumyadeep Hore
Previously error codes were only -ve for cpfl_receive_ctlq_msg() but now there are +ve error codes. Hence code changes are made accordingly. Fixes: db042ef09d26 ("net/cpfl: implement FXP rule creation and destroying") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- driver

[PATCH v1 1/9] common/iavf: update the PTP enablement in virtchnl

2024-09-10 Thread Soumyadeep Hore
From: Jacob Keller The virtchnl now supports the PTP Tx Timestamp attributes in iavf. Signed-off-by: Jacob Keller Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 50 ++ 1 file changed, 50 insertions(+) diff --git a/drivers/common/iavf

[PATCH v1 2/9] common/iavf: add SyncE support over VF

2024-09-10 Thread Soumyadeep Hore
required for Synce operations. The goal of this implementation is to provide device agnostic interface to the VF, but due to the feature design the VF will get the minimum HW details via VIRTCHNL_OP_SYNCE_GET_HW_INFO opcode. Signed-off-by: Piotr Gardocki Signed-off-by: Soumyadeep Hore --- drivers

[PATCH v1 3/9] common/iavf: add GNSS support over VF

2024-09-10 Thread Soumyadeep Hore
Capability through Extended PTP Capability Exchange. VF can access GNSS Console I2C only if Extended PTP Capability exchange indicates so. Signed-off-by: Jun Zhang Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 66 ++ 1 file changed, 66 insertions

[PATCH v1 4/9] common/iavf: define the maximum MSIX index

2024-09-10 Thread Soumyadeep Hore
Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/iavf_register.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/iavf/iavf_register.h b/drivers/common/iavf/iavf_register.h index 328100138d..96df411e06 100644 --- a/drivers/common/iavf/iavf_register.h +++ b

[PATCH v1 5/9] common/iavf: add commands for HQOS management

2024-09-10 Thread Soumyadeep Hore
From: Lukasz Plachno Add VIRTCHNL operations for managing scheduling nodes for VSI subtree. E822/E830 adapters allows VNet based scheduling tree configuration. Management of scheduling nodes up to VSIs is done by devlink interface. Signed-off-by: Lukasz Plachno Signed-off-by: Soumyadeep Hore

[PATCH v1 6/9] common/iavf: add flex descriptor fields enum

2024-09-10 Thread Soumyadeep Hore
From: Mateusz Polchlopek Flex descriptor has fields like DD, EOP or RXE defined under other addresses than legacy descriptor. This commit introduces enum with bits definitions for flex one. Signed-off-by: Mateusz Polchlopek Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/iavf_type.h

[PATCH v1 7/9] common/iavf: add RefSync support

2024-09-10 Thread Soumyadeep Hore
virtchnl messages, but leaves the previous description of bit 6 for backward compatibility, so that when RefSync is not supported this bit may still be used for Esync enable/disable only. Signed-off-by: Julian Grajkowski Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 12

[PATCH v1 9/9] common/iavf: add RSS CONFIG hash function

2024-09-10 Thread Soumyadeep Hore
From: Ahmed Zaki Add VIRTCHNL_OP_CONFIG_RSS_HFUNC that allows the iavf to select the VF's hash function. Signed-off-by: Ahmed Zaki Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/common

[PATCH v1 8/9] common/iavf: introduce QGRP capabilities to replace ADQ caps

2024-09-10 Thread Soumyadeep Hore
eventually replace VIRTCHNL_MAX_ADQ_V2_CHANNELS. Signed-off-by: Sudheer Mogilappagari Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 2d88b83932..92e323d741

[PATCH v1 0/9] Update IAVF Base Driver

2024-09-10 Thread Soumyadeep Hore
Updated the IAVF Base driver with latest sharedcode patches. Ahmed Zaki (2): common/iavf: define the maximum MSIX index common/iavf: add RSS CONFIG hash function Jacob Keller (1): common/iavf: update the PTP enablement in virtchnl Julian Grajkowski (1): common/iavf: add RefSync support

[PATCH v1] doc: update supported MEV TS version for CPFL

2024-10-08 Thread Soumyadeep Hore
Current MEV TS IPU support FW version 1.6. Hence, updating the same in documentation Signed-off-by: Soumyadeep Hore --- doc/guides/nics/cpfl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst index 69eabf5616..154201e745 100644 --- a

[PATCH v1] net/ice: fix incorrect reading of PHY timestamp

2024-10-11 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/ice_ethdev.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 7b1bd163a2..2357d6e

[PATCH v2] net/ice: fix incorrect reading of PHY timestamp

2024-10-24 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/ice_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 7b1bd163a2..e0db47cf28 10

[PATCH v3] net/ice: fix incorrect reading of PHY timestamp

2024-11-04 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- v3: - Decreased the end time delay from 1 second to 10 microseconds --- v2: - Addressed Bruce's comments --- drivers/net/ice/ice_ethdev.c | 19 ++- 1 file changed, 18 insertions(+), 1 de

[PATCH v4] net/ice: fix incorrect reading of PHY timestamp

2024-11-05 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- v4: - Addressed Bruce comments for do while loop introduction --- v3: - Decreased the end time delay from 1 second to 10 microseconds --- v2: - Addressed Bruce's comments --- drivers/net/ice/ic

[PATCH v2] net/ice: fix incorrect reading of PHY timestamp

2024-10-29 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- v2: - Addressed Bruce's comments --- drivers/net/ice/ice_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice

[PATCH v3] net/ice: fix incorrect reading of PHY timestamp

2024-10-25 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/ice_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 7b1bd163a2..e0db47cf28 10

[PATCH v1] net/ice: fix incorrect reading of PHY timestamp

2024-10-25 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/ice_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 70298ac330..efc6db4346 10

[PATCH v1] common/iavf: update README documentation

2024-09-17 Thread Soumyadeep Hore
Updating README documentation to have the latest version for IAVF Base driver. Signed-off-by: Soumyadeep Hore --- drivers/common/iavf/README | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/common/iavf/README b/drivers/common/iavf/README index 89bdbc827e

[PATCH v4] net/ice: fix incorrect reading of PHY timestamp

2024-10-25 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/ice_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 7b1bd163a2..e0db47cf28 10

[PATCH v5] net/ice: fix incorrect reading of PHY timestamp

2024-11-06 Thread Soumyadeep Hore
itial PTP support for E830") Cc: sta...@dpdk.org Signed-off-by: Soumyadeep Hore --- v5: - Addressed edge case as specified in Bruce's comment --- v4: - Addressed Bruce comments for do while loop introduction --- v3: - Decreased the end time delay from 1 second to 10 microseconds ---

[PATCH v1 0/3] Implement TXPP Support in ICE PMD

2025-02-07 Thread Soumyadeep Hore
This patchset includes TXPP feature implementation in ICE PMD. Paul Greenwalt (2): net/intel: add support for timestamp ring HW workaround net/intel: add E830 ETF offload timestamp resolution Soumyadeep Hore (1): net/intel: add Tx time queue drivers/net/intel/common/tx.h

[PATCH v1 1/3] net/intel: add support for timestamp ring HW workaround

2025-02-07 Thread Soumyadeep Hore
, ensuring the same number of available descriptors for both the Tx and tstamp rings. Signed-off-by: Soumyadeep Hore Signed-off-by: Paul Greenwalt --- drivers/net/intel/ice/base/ice_lan_tx_rx.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/intel/ice/base/ice_lan_tx_rx.h b

[PATCH v1 3/3] net/intel: add Tx time queue

2025-02-07 Thread Soumyadeep Hore
Enabling Tx timestamp queue for supporting Tx time based scheduling of packets. Signed-off-by: Soumyadeep Hore --- drivers/net/intel/common/tx.h | 5 + drivers/net/intel/ice/base/ice_lan_tx_rx.h | 1 + drivers/net/intel/ice/ice_ethdev.h | 1 + drivers/net/intel/ice

[PATCH v1 2/3] net/intel: add E830 ETF offload timestamp resolution

2025-02-07 Thread Soumyadeep Hore
From: Paul Greenwalt Update E830 ETF offload time stamp resolution to 128ns. Signed-off-by: Soumyadeep Hore Signed-off-by: Paul Greenwalt --- drivers/net/intel/ice/base/ice_lan_tx_rx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/intel/ice/base/ice_lan_tx_rx.h b/drivers

<    1   2   3   >