This patch series adds SM2 crypto algorithm support, along with tests
verified using Openssl.
v3:
- sm2 xform contains hash param and key pair info moved into op.
Gowrishankar Muthukrishnan (3):
cryptodev: add SM2 asymmetric crypto algorithm
test/crypto: add asymmetric SM2 test cases
crypt
ShangMi 2 (SM2) is set of public-key cryptography algorithms
based on elliptic curves.
Added support for asymmetric SM2 in cryptodev along with prime
field curve, as referenced in RFC:
https://datatracker.ietf.org/doc/html/draft-shen-sm2-ecdsa-02
Signed-off-by: Gowrishankar Muthukrishnan
---
do
Added test cases for asymmetric SM2 crypto validation.
Test cases are added for sign/verify/encrypt/decrypt.
Signed-off-by: Gowrishankar Muthukrishnan
---
app/test/test_cryptodev_asym.c | 581 +
app/test/test_cryptodev_sm2_test_vectors.h | 129 +
2 files chang
Add SM2 asymmetric algorithm support in openssl PMD.
Signed-off-by: Gowrishankar Muthukrishnan
---
doc/guides/cryptodevs/features/openssl.ini | 1 +
doc/guides/cryptodevs/openssl.rst| 1 +
doc/guides/rel_notes/release_23_07.rst | 4 +
drivers/crypto/openssl/openssl_pmd_
Hi,
I have simplified sm2 xform to only have hash algo and rest in crypto op.
Please review v3 and let me know if changes are good.
Also, I need to test plain scalar k value but I don't have support in openSSL
to do that. So, I will meanwhile get back once I am
done with that part as well, but v3
On EF100 hardware, match-action engine (MAE) can be equipped
with an assistance table for connection tracking (CT). In it,
an entry key is a set of exact match fields: an EtherType, a
pair of IP addresses, a L4 protocol ID and a pair of L4 port
numbers. An entry response can provide matching packet
From: Denis Pryazhennikov
Future patches will add an implementation of MCDI Table
Access API in libefx. This patch adds a way to determine
if this API is supported.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/common/sfc_efx/base/efx.h
From: Denis Pryazhennikov
New MCDI Table Access API allows management of
the HW tables' content.
This part of API helps to list all supported tables.
In the near future, only the CT table is planned
to be used, so only one identifier for this table
was added to the efx.
New table IDs will be adde
From: Denis Pryazhennikov
Extend MCDI macros to manipulate with fields in indexed QWORDs.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Viacheslav Galaktionov
---
drivers/common/sfc_efx/base/efx_mcdi.h | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/
From: Denis Pryazhennikov
Table's descriptor and fields' descriptors can be taken
by table ID using a new API.
In the near future, only the CT table is planned
to be used, so only fields that are required for these
purposes were added to the efx.
Signed-off-by: Denis Pryazhennikov
Reviewed-by:
From: Denis Pryazhennikov
API allows to insert data to any supported HW table.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Viacheslav Galaktionov
Reviewed-by: Andy Moreton
---
drivers/common/sfc_efx/base/efx.h | 16 +
drivers/common/sfc_efx/base/efx_tab
From: Denis Pryazhennikov
API allows to delete entry from any supported HW table.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/common/sfc_efx/base/efx.h | 11
drivers/common/sfc_efx/base/efx_table.c | 77 +
From: Denis Pryazhennikov
A "table" is structure used for lookups, consisting of a set of
entries which can be matched against an N-bit "request", to
return either a "hit" with an M-bit "response", or a "miss" if
there is no match. There are a number of HW tables of various
types that could be us
From: Denis Pryazhennikov
Implemented functions that help to fill user data for
manipulation with HW tables in the required format.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/meson.build | 1 +
drivers/net/sfc/sfc_tbls.c | 140
From: Denis Pryazhennikov
The patch adds APIs to initialise, manipulate and finalise
HW tables API-specific context in NIC control structure.
The context itself will be used to store HW tables-related info,
like table descriptors and field descriptors.
Signed-off-by: Denis Pryazhennikov
Reviewe
From: Denis Pryazhennikov
The new API allows to manipulate entries in
the HW Conntrack table.
It uses a new Table Access API as a backend.
Signed-off-by: Denis Pryazhennikov
Reviewed-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/meson.build | 1 +
drivers/net/sfc/sfc_mae_ct
Keep NULL object check in one place rather than repeat it in
all of the callers. That should make the code easier on eyes.
Future code for additional object types will follow this way.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_mae.c | 78 +++
Doing so is useful to facilitate driver-internal flow rework.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_flow.c | 42 ++
drivers/net/sfc/sfc_flow.h | 9
2 files changed, 42 insertions(+), 9 deletions(-)
diff --git a
In the case of VF <--> VF representor pairs, these flows can
only collect VF traffic, so let them use generic flow action
PORT_REPRESENTOR, as part of re-using generic flow mechanism.
Currently, it does not allow to access VF representors since
they have no unique HW logical ports (m-ports). They
At the moment, driver-internal flow rules are provisioned by
functions that are separate from the generic flow management
framework. In order to use the latter for such rules, extend
it accordingly. This will be actually used in the next patch.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
Doing so helps to consolidate flow operation and ensure that
every FW-allocatable resource can be shared by several flows.
That is useful in the light of upcoming support for embedded
conntrack assistance, where several flows will ideally share
everything but unique 5-tuple entries in the conntrack
Doing so will facilitate easier code restructure in the next
patches required to rework flow housekeeping and indirection.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_flow.c | 47 +-
drivers/net/sfc/sfc_mae.c | 58
Flows provided by match-action engine (MAE) will be reworked
by the next patch to make action rule (AR) entries shareable.
To ensure correct AR specification comparison on attach path,
augment the way outer rules (OR) are handled, namely, how OR
IDs are indicated in a AR specification on parse and
Logically, starting flow counter streaming belongs in action
set enable path. Move it there as a preparation step for the
patch that will make action rules shareable by several flows.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_mae.c | 22 --
Later patches of the series provide support for HW conntrack
assistance. With the new feature, multiple flows that differ
in the 5-tuple match fields but are otherwise identical will
be able to share all FW-allocatable objects except for those
of the conntrack table. That will boost flow engine cap
The DPDK driver would like to have a means to make a copy of
the action rule match specification before trying to dissect
it to possibly move out the per-connection 5-tuple data from
it to build up an entry in the HW conntrack assistance table.
Making such a copy at the end of parsing should be pr
Later patches of the series provide support for HW conntrack
assistance in the DPDK driver. In order to detect flows that
are subject to such assistance, the driver needs to retrieve
5-tuple match data from an already constructed specification.
A dedicated API to selectively read back match criter
EF100 match-action engine (MAE) has conntrack assistance
table. A hit in this table can provide a mark value for
the following lookup stage, which is action rule lookup.
Provide support for setting match on conntrack mark.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/common/
Such can be initiated when a packet hits an outer rule.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/common/sfc_efx/base/efx.h | 9 +
drivers/common/sfc_efx/base/efx_impl.h | 1 +
drivers/common/sfc_efx/base/efx_mae.c | 26 ++
drivers/c
On EF100 hardware, match-action engine (MAE) can be equipped
with an assistance table for connection tracking (CT). In it,
an entry key is a set of exact match fields: an EtherType, a
pair of IP addresses, a L4 protocol ID and a pair of L4 port
numbers. An entry response can provide matching packet
NAT goes after IP TTL decrement. It can operate
on the outermost frame only. In the case of
prior decapsulation, that maps to the frame
which was (originally) the inner one. Input
data for the action comes from the response
of the HW conntrack assistance table hit.
Signed-off-by: Ivan Malov
Revie
For this offload to work, the innermost pattern items must
provide the full set of exact match criteria, which are as
follows: EtherType, IP DST, IP SRC, TP protocol ID, TP DST
and TP SRC, where the protocol types can be autodetected.
The offload requires that the IPv4 and the TP actions be
reques
Doing so facilitates rearrangements of the next patch needed
to make software counter objects shareable across many flows.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_mae.c | 14 +++---
drivers/net/sfc/sfc_mae.h | 14 +++---
driver
Such rework is needed to prepare for INDIRECT action support
and in order to align with the latest HW support perspective.
Currently, the driver supports only one counter per flow. It
was once thought that MAE would support multiple counters in
one action set. That was partly envisaged in code and
Indirect count action is useful to applications that
need to gather aggregated statistics for many flows.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
doc/guides/nics/sfc_efx.rst| 2 +
doc/guides/rel_notes/release_23_07.rst | 3 +
drivers/net/sfc/sfc.h
Doing so is required to disambiguate counters of different
types supported by the match-action engine (MAE) on EF100.
Currently, the code only supports action rule counters,
but MAE may also support conntrack assistance counters.
Add type-aware allocate and free MCDI handlers and
extend reporting
Doing so assists adding support for additional counter types.
Current implementation is only aware of action rule counters
that are supported by the match-action engine (MAE) on EF100
NICs, but MAE may also support conntrack assistance counters.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreto
These are 1-bit saturating counters which can only be useful
to tell whether a given flow rule has offloaded some packets
since the last query. Byte count is never provided for these.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/net/sfc/sfc_flow.h| 2 +
drivers/net/
Counters that can be referenced by HW conntrack assistance
table work similar to those of the action rules. However,
their IDs belong to a separate (CT-specific) namespace.
These are 1-bit saturating counters with no byte count.
Signed-off-by: Ivan Malov
Reviewed-by: Andy Moreton
---
drivers/c
On 2023/6/2 20:47, Ferruh Yigit wrote:
> On 6/2/2023 8:52 AM, Dengdui Huang wrote:
>> The API rte_eth_dev_is_valid_rxq/txq which
>> is used to check if Rx/Tx queue is valid.
>> If the queue has been setup, it is considered valid.
>>
>> Signed-off-by: Dengdui Huang
>> ---
>> doc/guides/rel_notes/r
When input queue ID is invalid, it will lead to
Segmentation fault, like:
dpdk-testpmd -a :01:00.0 -- -i
testpmd> show port 0 txq/rxq 99 desc 0 status
Segmentation fault
dpdk-testpmd -a :01:00.0 -- -i
testpmd> show port 0 rxq 99 desc used count
Segmentation fault
This patch fixes it.
Fi
This series add a commom API to check queue id
and use it to fix a bug.
v4->v5
update document order and correcting typos
v3->v4
update API name and uptate description in the API documentation
v2->v3
update API name and use the internal function
eth_dev_validate_tx_queue() to check queue id
v1-
The API rte_eth_dev_is_valid_rxq/txq which
is used to check if Rx/Tx queue is valid.
If the queue has been setup, it is considered valid.
Signed-off-by: Dengdui Huang
---
doc/guides/rel_notes/release_23_07.rst | 6
lib/ethdev/rte_ethdev.c| 22 +++
lib/ethdev/rte
This patch series add the support of:
1. Report the outer L3 packet type.
2. Report the L4 packet type for VXLAN and GENEVE.
Qin Ke (2):
net/nfp: report outer L3 packet type by Rx descriptor
net/nfp: add default process to report outer L4 packet type
drivers/net/nfp/nfp_rxtx.c | 21 +
From: Qin Ke
Parse outer layer 3 packet type from Rx descriptor and report it.
Signed-off-by: Qin Ke
Reviewed-by: Niklas Söderlund
Reviewed-by: Chaoyong He
---
drivers/net/nfp/nfp_rxtx.c | 17 +
drivers/net/nfp/nfp_rxtx.h | 21 +
2 files changed, 34 insert
From: Qin Ke
The parsing of outer layer 4 packet type by Rx descriptor is not
supported, add default process to report the outer layer 4 packet
type for VXLAN and GENEVE packets.
Signed-off-by: Qin Ke
Reviewed-by: Niklas Söderlund
Reviewed-by: Chaoyong He
---
drivers/net/nfp/nfp_rxtx.c | 4 +
On Fri, Jun 2, 2023 at 1:27 PM Julien Aube wrote:
>
> - add support for 2500baseX_Full in addition to 1000baseT_Full.
> For 2.5Gbps speed, HSGMII mode shall be enabled in serdes.
> - add the possibility to support SC connectors on SFP (GPON are mostly SC)
> - change the initialisation time from
On Thu, Jun 1, 2023 at 9:08 PM Bruce Richardson
wrote:
>
> Doxygen can produce manpage output as well as html output for the DPDK
> APIs. However, we need to do this as a separate task as the manpage
> output needs to be placed in a different location post-install to the
> html output (/usr/local/
Remove the data fields of nfp structure which are not used by anyone,
and modify the corresponding logics.
Signed-off-by: Chaoyong He
Reviewed-by: Niklas Söderlund
---
drivers/net/nfp/flower/nfp_flower.c | 4 +---
drivers/net/nfp/nfp_common.h| 34 +
drivers/
From: Jin Liu
Use rte_eal_alarm_set() function instead of clock cycle to
implement meter stats timer, to make code more standard.
Signed-off-by: Jin Liu
Reviewed-by: Chaoyong He
Reviewed-by: Niklas Söderlund
---
drivers/net/nfp/flower/nfp_flower_ctrl.c | 20 --
drivers/net/nf
On 2023/6/1 22:36, Ferruh Yigit wrote:
On 5/30/2023 10:05 AM, Jie Hai wrote:
This patchset supports querying information about ethdev.
The information includes MAC addresses, RxTx offload, flow ctrl,
Rx|Tx queue, firmware version, DCB, RSS, FEC, VLAN, etc.
Dengdui Huang (1):
ethdev: support
From: Beilei Xing
This patchset adds hairpin queue support.
v2 changes:
- change hairpin rx queus configuration sequence.
- code refine.
v3 changes:
- Refine the patchset based on the latest code.
v4 change:
- Remove hairpin rx buffer queue's sw_ring.
- Change hairpin rx queus configurati
From: Beilei Xing
This patch refines some structures to support hairpin queue,
cpfl_rx_queue/cpfl_tx_queue/cpfl_vport.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 85 +++-
drivers/net/cpfl/cpfl_ethdev.h | 6 +-
driver
From: Beilei Xing
This patch adds queue group add/delete virtual channel support.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/common/idpf/idpf_common_virtchnl.c | 66 ++
drivers/common/idpf/idpf_common_virtchnl.h | 9 +++
drivers/common/idpf/version.
From: Beilei Xing
This patch adds haipin queue group during vport init.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 133 +
drivers/net/cpfl/cpfl_ethdev.h | 18 +
drivers/net/cpfl/cpfl_rxtx.h | 7 ++
3 file
From: Beilei Xing
This patch adds hairpin_cap_get ops support.
Signed-off-by: Xiao Wang
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 18 ++
drivers/net/cpfl/cpfl_rxtx.h | 3 +++
2 files changed, 21 insertions(+)
diff --git a/d
From: Beilei Xing
Support hairpin Rx/Tx queue setup and release.
Signed-off-by: Xiao Wang
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 6 +
drivers/net/cpfl/cpfl_ethdev.h | 11 +
drivers/net/cpfl/cpfl_rxtx.c| 364
From: Beilei Xing
This patch supports Rx/Tx queue configuration APIs.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/common/idpf/idpf_common_virtchnl.c | 70 ++
drivers/common/idpf/idpf_common_virtchnl.h | 6 ++
drivers/common/idpf/version.map
From: Beilei Xing
This patch supports Rx/Tx hairpin queue configuration.
Signed-off-by: Xiao Wang
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 136 +++--
drivers/net/cpfl/cpfl_rxtx.c | 80 +++
driver
From: Beilei Xing
This patch adds idpf_vc_ena_dis_one_queue API.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/common/idpf/idpf_common_virtchnl.c | 2 +-
drivers/common/idpf/idpf_common_virtchnl.h | 3 +++
drivers/common/idpf/version.map| 1 +
3 files changed,
From: Beilei Xing
This patch supports Rx/Tx hairpin queue start/stop.
Signed-off-by: Xiao Wang
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 46 +
drivers/net/cpfl/cpfl_rxtx.c | 164 +
drivers/net/cpfl/cp
From: Beilei Xing
This patch supports idpf_vport_irq_map_config_by_qids API.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/common/idpf/idpf_common_device.c | 75
drivers/common/idpf/idpf_common_device.h | 4 ++
drivers/common/idpf/version.map
From: Beilei Xing
This patch enables write back based on ITR expire
(WR_ON_ITR) for hairpin queues.
Signed-off-by: Mingxia Liu
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/net/cpfl/cpfl_
From: Beilei Xing
This patch supports get hairpin peer ports.
Signed-off-by: Xiao Wang
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 41 ++
1 file changed, 41 insertions(+)
diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_e
From: Beilei Xing
This patch supports hairpin_bind/unbind ops.
Signed-off-by: Xiao Wang
Signed-off-by: Beilei Xing
---
drivers/net/cpfl/cpfl_ethdev.c | 137 +
1 file changed, 137 insertions(+)
diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl
From: Beilei Xing
Update cpfl.rst to clarify hairpin support.
Signed-off-by: Beilei Xing
---
doc/guides/nics/cpfl.rst | 7 +++
1 file changed, 7 insertions(+)
diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst
index d25db088eb..8d5c3082e4 100644
--- a/doc/guides/nics/cpfl.rs
On Fri, Jun 2, 2023 at 9:52 PM Thierry Herbelot
wrote:
>
> The Linux kernel option has an added underscore.
>
> Fixes: 14ad4f01845331a ('doc: add Marvell OCTEON TX2 platform guide')
> Signed-off-by: Thierry Herbelot
fixed following issues while merging.
Applied to dpdk-next-net-mrvl/for-next-n
67 matches
Mail list logo