> -Original Message-
> From: dev On Behalf Of Vimal Chungath
> Sent: Wednesday, October 28, 2020 4:18 AM
> To: dev@dpdk.org
> Cc: Honnappa Nagarahalli ; Dharmik
> Thakkar ; alisa...@amazon.com;
> bruce.richard...@intel.com; hemant.agra...@nxp.com;
> jer...@marvell.com; jerinjac...@gmail.
AVX512 instructions is supported by more and more platforms. These instructions
can be used in the data path to enhance the per-core performance of packet
processing.
Comparing with the existing implementation, this path set introduces some
AVX512 instructions into the iavf data path, and we get
To enhance the per-core performance, this patch adds some AVX512
instructions to the data path to handle the flexible RX descriptors.
Signed-off-by: Wenzhuo Lu
Signed-off-by: Bruce Richardson
Signed-off-by: Leyi Rong
---
drivers/net/iavf/iavf_rxtx.c| 10 +
drivers/net/iavf/iavf_rx
To enhance the per-core performance, this patch adds some AVX512
instructions to the data path to handle the legacy RX descriptors.
Signed-off-by: Wenzhuo Lu
Signed-off-by: Bruce Richardson
Signed-off-by: Leyi Rong
---
drivers/net/iavf/iavf_rxtx.c| 29 +-
drivers/net/iavf/iavf_rxt
To enhance the per-core performance, this patch adds some AVX512
instructions to the data path to handle the TX descriptors.
Signed-off-by: Wenzhuo Lu
Signed-off-by: Bruce Richardson
Signed-off-by: Leyi Rong
---
doc/guides/rel_notes/release_20_11.rst | 3 +
drivers/net/iavf/iavf_ethdev.c
Flow destructor tired to access flow related resources after the
flow object memory was already released and crashed dpdk process.
The patch moves flow memory release to the end of destructor.
Signed-off-by: Gregory Etelson
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c | 2 +-
1 file
On Wed, Oct 28, 2020 at 2:35 AM Thomas Monjalon wrote:
>
> The order test stored the flow ID in the deprecated mbuf field udata64.
> It is moved to a dynamic field in order to allow removal of udata64.
>
> Signed-off-by: Thomas Monjalon
> ---
> app/test-eventdev/test_order_atq.c| 4 ++--
>
Hello,
IMO, Juraj's patch for meson build rework for Arm platforms will need
some time. Keeping the RC2 deadline in mind, it makes sense to accept this
patch and target Juraj's patch for 21.02.
Any opinions?
> -Original Message-
> From: Vimal Chungath
> Sent: Tuesday, October 2
On 2020/10/27 16:50, chris wrote:
@Ferruh: this patch is tested with both PIO and MMIO bar using testpmd
and start tx_first.
vfio/igb_uio tested with MMIO bar (uio_pci_generic doesn't work with
msix, so it isn't tested)
uio_pci_generic tested with PIO bar (igb_uio has unknown symbols, not
Update base code version in readme.
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/README | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ice/base/README b/drivers/net/ice/base/README
index 1e9c854ae8..5229e5fe7d 100644
--- a/drivers/net/ice/base/README
+++ b/dr
Use struct ice_rss_hash_cfg as parameter for
ice_add_rss_cfg, ice_add_rss_cfg_sync and
ice_rem_rss_cfg, ice_rem_rss_cfg_sync.
Introduce enmu ice_rss_cfg_hdr_type to allow user specify the more
flexible RSS configure.
ICE_RSS_OUTER_HEADERS - take outer layer as RSS inputset
ICE_RSS_INNER_HEADERS -
Use the FLEX_ARRAY_SIZE() helper with the recently added flexible array
members in structures.
Signed-off-by: Bruce Allan
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_common.c| 2 +-
drivers/net/ice/base/ice_flex_pipe.c | 2 +-
drivers/net/ice/base/ice_type.h | 4
3 files
There is no way to specify a global RSS LUT ID with the current API and
0 is the only global LUT ID that can be supported since it's hard coded.
Upcoming support to specify a global LUT ID will require this
flexibility. To fix this, update the API for ice_aq_get_rss_lut() and
ice_aq_set_rss_lut() t
When sending the indirect Read/Write SFF EEPROM AQ command. The flag is
already added later in the code flow for all indirect AQ commands, i.e.
commands that provide an additional data buffer.
Signed-off-by: Bruce Allan
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_common.c | 2 +-
1 fil
Added two new admin commands called: SW Set GPIO and SW Get GPIO
(0x6EF and 0x6F0 respectively) which extends GPIO handling
capabilities by SW driver
Signed-off-by: Amir Shay
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_adminq_cmd.h | 18 ++
1 file changed, 18 insertions
Fix parameter name for cookie_high and cookie_low.
Fixes: a90fae1d0755 ("net/ice/base: add admin queue structures and commands")
Cc: sta...@dpdk.org
Signed-off-by: Jesse Brandeburg
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_adminq_cmd.h | 4 ++--
1 file changed, 2 insertions(+), 2 de
iSCSI can use both TCP ports 860 and 3260. However, in our current
implementation, the ice_aqc_opc_get_cee_dcb_cfg (0x0A07) AQ command
doesn't provide a way to communicate the protocol port number to the
AQ's caller. Thus, we assume that 3260 is the iSCSI port number at the
AQ's caller layer.
In t
Currently QSFP/SFP modules up to power class 4 are supported.
100G modules require higher power in many cases.
Also, low power mode requires support of power classes 7 and even 8.
This change extends "Get Link Status" AQ command (0x0607) to
support class 5+ modules.
The patch also add couple othe
Implemented shared bandwidth rate limit functionality to account for
dedicated bandwidth and minimum bandwidth. It requires non default
profile be programmed for CIR, EIR/PIR, and SRL.
Signed-off-by: Tarun Singh
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_sched.c | 484
As there is nothing to unroll, return the error directly. Remove the label
as this is the only reference to that label.
Signed-off-by: Tony Nguyen
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_sched.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/ne
Add below 3 new capability to "Get Capabilities" AQ commands
0x000A and 0x000B.
ICE_AQC_CAPS_IWARP
ICE_AQC_CAPS_PCIE_RESET_AVOIDANCE
ICE_AQC_CAPS_NVM_MGMT
Signed-off-by: Amir Shay
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_adminq_cmd.h | 3 +++
1 file changed, 3 insertions(+)
diff -
Use *malloc() instead of *calloc() when allocating only a single object as
opposed to an array of objects.
Signed-off-by: Bruce Allan
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_switch.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ice/base/ice_swit
There are two package versions in the package binary. Today, these two
version numbers are the same. However, in the future that may change.
Update code to use the package info from the ice segment metadata
section, which is the package information that is actually downloaded to
the firmware durin
Currently there is no API to allocate and free a RSS global LUT.
Incoming changes to support VFs having >16 queues will require using
RSS global LUT resources. The functions included will allow a PF to
configure a RSS global LUT for VFs that request >16 queues.
Signed-off-by: Brett Creeley
Signed
The main NVM module and the Option ROM module contain a security
revision in their CSS header. This security revision is used to
determine whether or not the signed module should be loaded at bootup.
If the module security revision is lower than the associated minimum
security revision, it will not
These functions reside in ice_sched.c but the function protypes are
declared in ice_common.h. Move the function prototypes to ice_sched.h.
Signed-off-by: Tony Nguyen
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_common.h | 7 ---
drivers/net/ice/base/ice_sched.h | 8
2 file
Add below ptypes into ice_ptypes_mac_ofos:
MAC_IPV4[6]_ESP
MAC_IPV4[6]_AH
MAC_IPV4[6]_NAT_T_ESP
MAC_IPV4[6]_NAT_T_IKE
MAC_IPV4[6]_NAT_T_KEEP
MAC_IPV4[6]_PFCP_NODE
MAC_IPV4[6]_PFCP_SESSION
MAC_IPV4[6]_L2TPV3
So above ptype can also be selected by a filter when outer mac header
is required.
Signed
Added NVM Write Admin Command (0x703) ARQ response flags - as
returned in "Response flags" field.
Three flags are supported: POR, PERST and EMPR. All indicate the
type of reset required to get the NVM bank update effective.
Signed-off-by: Amir Shay
Signed-off-by: Qi Zhang
---
drivers/net/ice/ba
Align all ptype bitmap to follow ice_ptypes_xxx prefix.
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_flow.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c
index 45990aeca0..4512b12368
main change:
1. Refactor the RSS configure API.
2. Add global LUT support .
3. copule fix and code clean
v3:
- fix gtpu rss bug in patch 19/22
v2:
- fix missing code in patch 19/21.
*** BLURB HERE ***
Qi Zhang (21):
net/ice/base: add tunnel support for FDIR
net/ice/base: add NVM Write Respo
Add struct to store outer part for tunnel rule.
Add vxlan ptype in ipv4 mac bitmap. So when create a vxlan rule, the
ptype group will be valid.
Signed-off-by: Zhirun Yan
Signed-off-by: Qi Zhang
---
drivers/net/ice/base/ice_fdir.c | 8
drivers/net/ice/base/ice_fdir.h | 9 +
driv
When the max rx packet length is smaller than the sum of mtu size and
ether overhead size, it should be enlarged, otherwise the VLAN packets
will be dropped.
Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines")
Signed-off-by: SteveX Yang
---
app/test-pmd/testpmd.c | 20 +
Update the max_rx_pkt_len to have MTU as RTE_ETHER_MTU.
v7:
* drop patch 2 due to Jumbo frame flag issue;
v6:
* change the max_rx_pkt_len in the init_config of testpmd;
* change the mtu value in the rte_ethdev;
v5:
* update comments and commit messages;
v4:
* add the adjust condition for max_
CQE compression allows us to save the PCI bandwidth and improve
the performance by compressing several CQEs togheter to a miniCQE.
But the miniCQE size is only 8 bytes and this limits the ability
to sucessfuly keep the compression session in case of various
traffic patterns.
The current miniCQE fo
Replace the 'rte_panic()' with an error return.
Also change the type of the calling function.
Signed-off-by: Jiawen Wu
---
drivers/net/txgbe/txgbe_ethdev.c | 11 +--
drivers/net/txgbe/txgbe_ethdev.h | 2 +-
drivers/net/txgbe/txgbe_pf.c | 23 ++-
3 files changed,
On Tue, Oct 27, 2020 at 7:59 AM Liang Ma wrote:
>
> This patchset proposes a simple API for Ethernet drivers
> to cause the CPU to enter a power-optimized state while
> waiting for packets to arrive, along with a set of
> generic intrinsics that facilitate that. This is achieved
> through cooperat
Acked-by: Jiayu Hu
> -Original Message-
> From: yang_y...@163.com
> Sent: Monday, October 26, 2020 2:47 PM
> To: dev@dpdk.org
> Cc: Hu, Jiayu ; Ananyev, Konstantin
> ; techbo...@dpdk.org;
> tho...@monjalon.net; yangy...@inspur.com; yang_y...@163.com
> Subject: [PATCH v3] gso: fix free is
V2 changes:
- drop make patch
Vimal Chungath (1):
build: add Graviton2(arm64) meson configuration
config/arm/arm64_graviton2_linux_gcc | 17 +
config/arm/meson.build | 12 +++-
2 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644 config/ar
Add meson build configuration for Graviton2 platform
with 64-bit Arm Neoverse N1 cores. This patch makes the
following changes to generic Neoverse N1 config:
1. increase lcore limit to 64
2. increase memory support to 1TB
3. remove +crc from -march as that is default when setting armv8.2
For more
From: Xueming Li
To support multi-thread flow insertion, this patch removes shared data
lock since all resources should support concurrent protection.
Signed-off-by: Xueming Li
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
doc/guides/nics/mlx5.rst | 1 +
doc/guides/re
This commit uses spinlock to protect the tunnel hub list in multiple
thread.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c | 20 +---
drivers/net/mlx5/mlx5_flow.h | 1 +
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers
This commit uses cache list to make sample and mirror action thread
safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 14 ++
drivers/net/mlx5/mlx5.h | 5 +-
drivers/net/mlx5/mlx5_flow.h | 28 ++-
drivers/net/mlx5/mlx5_flow_dv.c | 39
This commit uses spinlock to protect the shared action list in multiple
thread.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 1 +
drivers/net/mlx5/mlx5.h | 1 +
drivers/net/mlx5/mlx5_flow_dv.c | 5 +
3 files changed, 7 insertions(+)
dif
To support multi-thread flow insertion, this patch updates tunnel
offloading hash table to use thread safe hash list.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow.c| 92 ++---
drivers/net/mlx5/mlx5_flow_dv.c | 11 +
In previous commits the hash list objects have been converted
to new thread safe hash list. The legacy hash list code can be
removed now.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_utils.c | 38 -
drivers/net/mlx5/mlx5_utils.h | 66 --
Currently, the sample action resource already has ft_type to indicate
the action domain attribute, the extra flow attributes parameter can
be optimized.
This commit uses action resource ty_type as domain attribute instead of
the flow attribute.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
From: Xueming Li
To support multi-thread flow insertion, this patch convert port id
action cache list to thread safe cache list.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 7 ++
drivers/net/mlx5/mlx5.h | 2 +-
drivers/net/mlx5/mlx5_flow
Currently, sample flow need to prepare and register the sub-actions
before sample action is created.
Once the same sample action exists, the sub-actions registered by
the second flow should be released, or these sub-actions will be
leaked. Since the exist sample action only release these same
sub-
From: Xueming Li
To support multi-thread flow insertion, this patch converts push VLAN
action cache list to thread safe cache list.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 7 ++
drivers/net/mlx5/mlx5.h | 2 +-
drivers/net/mlx5/mlx5_f
This commit applies the cache linked list to Rx queue to make it thread
safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 5 +
drivers/net/mlx5/mlx5.c| 1 +
drivers/net/mlx5/mlx5.h| 28 +++-
drivers/net/mlx5/mlx5_flow.h
From: Xueming Li
New API of linked list for cache:
- Optimized for small amount cache list.
- Optimized for read-most list.
- Thread safe.
- Since number of entries are limited, entries allocated by API.
- For dynamic entry size, pass 0 as entry size, then the creation
callback allocate the entry
From: Xueming Li
To support multi-thread flow insertion, this path converts matcher list
to use thread safe cache list API.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.h | 3 +
drivers/net/mlx5/mlx5_flow.h| 15 ++-
drivers/net/mlx5/mlx5_flow_dv.c |
When create shared RSS hrxq, the hrxq will be created directly, no hrxq
will be reused.
In this case, add the shared RSS hrxq to the queue list is redundant.
And it also hurts the generic queue lookup.
This commit avoids add the shared RSS hrxq to the queue list.
Signed-off-by: Suanming Mou
Ack
From: Xueming Li
To support multi-thread flow insertion, this patch updates metadata copy
flow list to use thread safe hash list.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 5 +-
drivers/net/mlx5/mlx5_flow.c | 162 ++---
To support multi-thread flow insertion, this patch updates flow header
reformat action list to use thread safe hash list with write-most mode.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 7 +-
drivers/net/mlx5/mlx5_flow.h | 7 ++
drivers/net/
After non-cache mode feature was implemented, the flows can only be
created when port started. No need to check if the mreg flows are
created in port stopped status, and apply the mreg flows after port
start will also never happen.
This commit removed the relevant not used mreg copy code.
Signed-
From: Xueming Li
To support multi-thread flow insertion, this patch updates flow tag list
to use thread safe hash list with write-most mode.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 5 +-
drivers/net/mlx5/mlx5_flow.h | 5 ++
drivers/net/mlx5
From: Xueming Li
To support multi-thread flow insertion, this patch updates flow modify
action list to use thread safe hash list with write-most mode.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 7 +-
drivers/net/mlx5/mlx5_flow.h | 14 ++-
dri
All table, tag, header modify, header reformat are supported only on DV
mode. For the OFED version doesn't support these, create the related
redundant DV resources waste the memory.
Add the code section in the HAVE_IBV_FLOW_DV_SUPPORT macro to avoid the
redundant resources allocation.
Fixes: 2eb4
As flow table is shared between the ports in the same shared IB device,
flow table may be created by one port and released by other port.
Currently, the tunnel offloading active check in flow table release is
based on the port which release the flow table. Since the flow table
create port and rele
From: Xueming Li
To support multi-thread flow insertion/removal, this patch uses thread
safe hash list API for flow table cache hash list.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5.c | 99 +++
drivers/net/mlx5/mlx5.h | 2 +-
drive
This commit creates the global drop action for flows instead of
maintain it in flow insertion time. The uniqueu global drop action
makes it thread safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 5 +
drivers/net/mlx5/mlx5.c| 2 +
This commit creates the global default miss action instead of maintain
it in flow insertion time. This makes the action to be thread safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 7
drivers/net/mlx5/mlx5.h | 9 +---
drivers/net/ml
From: Xueming Li
In order to support hash list concurrent access, adding next:
1. List level read/write lock.
2. Entry reference counter.
3. Entry create/match/remove callback.
4. Remove insert/lookup/remove function which are not thread safe.
5. Add register/unregister function to support entry
From: Xueming Li
To support multi-thread flow operations, this patch introduces list lock
for the rte_flow list manages all the rte_flow handlers.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/mlx5_os.c | 1 +
drivers/net/mlx5/mlx5.h | 1 +
drivers/net/
This commit protects the VLAN VM workaround area using a spinlock
in multiple-thread flow insertion to make it thread safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/common/mlx5/linux/mlx5_nl.h | 1 +
drivers/net/mlx5/linux/mlx5_vlan_os.c | 5 +
2 files changed, 6 inse
This commit changes the jump action in table to be created with table
creation in advanced. In this case, the jump action is safe to be used
in multiple thread. The jump action will be destroyed when table is not
used anymore and released.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
d
This commit adds the spinlock for the meter action to make it be thread
safe. Atomic reference counter in all is not enough as the meter action
should be created synchronized with reference counter increment. With
only atomic reference counter, even the counter is increased, the action
may still no
From: Xueming Li
The ID generation API used an integer pool to save released ID, To
support multiple flow, it has to be enhanced to be thread safe.
Indexed pool could be used to generate unique ID by setting size of pool
entry to zero. Since bitmap is used, an extra benefits is saving memory
to
From: Xueming Li
As part of multi-thread flow support, this patch moves flow intermediate
data to thread specific, makes them a flow workspace. The workspace is
allocated per thread, destroyed along with thread life-cycle.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/l
From: Xueming Li
To make indexed pool to be used as ID generator, this patch allows entry
size to be zero.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_utils.c b/
From: Xueming Li
Hairpin flow matching required a unique flow ID for matching.
This patch reuses flow ID as hairpin flow ID, this will save some code
to generate a separate hairpin ID, also saves flow memory by removing
hairpin ID.
Signed-off-by: Xueming Li
Acked-by: Matan Azrad
---
drivers/n
As mlx5 PMD is changed to be thread safe, all the flow-related
sub-objects inside the PMD should be thread safe. This commit
changes the index memory pools' lock configuration to be enabled.
That makes the index pool be thread safe.
Signed-off-by: Suanming Mou
Acked-by: Matan Azrad
---
drivers/
> -Original Message-
> From: Thomas Monjalon
> Sent: Tuesday, October 27, 2020 6:31 PM
> To: Ma, Liang J ; Ananyev, Konstantin
>
> Cc: dev@dpdk.org; Burakov, Anatoly ;
> vikto...@rehivetech.com; Zhang, Qi Z ;
> ruifeng.w...@arm.com; Xing, Beilei ; Guo, Jia
> ; Yang, Qiming ;
> Wang,
This patch set contains multiple-thread flow operations support
for the flow objects.
Suanming Mou (19):
net/mlx5: use thread safe index pool for flow objects
net/mlx5: make meter action thread safe
net/mlx5: make VLAN network interface thread safe
net/mlx5: create global jump action
ne
Wrap glue call dv_create_flow_action_dest_devx_tir() with an OS API.
Fixes: b293fbf9672b ("net/mlx5: add OS specific flow actions operations")
Cc: sta...@dpdk.org
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/linux/mlx5_flow_os.h | 26 ++
drivers/net/mlx5/mlx5_devx.c
From: Tal Shnaiderman
Implement OS function call to get pdn.
Signed-off-by: Tal Shnaiderman
---
drivers/net/mlx5/windows/mlx5_os.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/drivers/net/mlx5/windows/mlx5_os.c
b/drivers/net/mlx5/windows/mlx5_os.c
index e334110..
Exclude call to rte_intr_callback_register under Windows using
definition RTE_EXEC_ENV_WINDOWS.
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/mlx5_txpp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_txpp.c b/drivers/net/mlx5/mlx5_txpp.c
index c22ddc9..4405054 1006
From: Tal Shnaiderman
Support VF BDF scanning by checking both the BDF and raw BDF provided by
DevX. In Linux a PCI address is formatted as: domain, bus, device,
function (DBDF). This is right for both a PF and a VF. In Windows a PF
also has a DBDF format, but the domain is always 0, while a VF
This commit implements mlx5_dev_spawn() API which allocates an eth
device (struct rte_eth_dev) for each PCI device. When working with
representors virtual functions (as in Linux), one PCI device may spawn
several eth devices: the master device for the main physical function
(PF) and several represe
From: Tal Shnaiderman
Currently the mlx5 PMD is supported on Windows for clang
compiler only, adding restriction in meson.build files
until mingw support will be added as well.
Signed-off-by: Tal Shnaiderman
---
drivers/common/mlx5/meson.build | 4 ++--
drivers/net/mlx5/meson.build| 4 ++--
From: Tal Shnaiderman
This commit implements mlx5_os_pci_probe API under Windows. It does all
required initializations then it gets the PCI device list using glue API
get_device_list(). Next, all non MLX5 matched devices are filtered out.
The supported NIC types are: CONNECTX4VF, CONNECTX4LXVF,
mlx5_flow_adjust_priority() is used to adjust priorities according to
priorities levels. It is Verbs based and it is called from shared code
(mlx5_flow_dv.c). Therefore, wrap it in an OS API.
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/linux/mlx5_flow_os.h | 20
drivers/n
From: Tal Shnaiderman
This commit copies the interface name as saved in the device context
since its creation.
Signed-off-by: Tal Shnaiderman
---
drivers/net/mlx5/windows/mlx5_ethdev_os.c | 28
1 file changed, 28 insertions(+)
diff --git a/drivers/net/mlx5/windows
From: Tal Shnaiderman
This commit replaces included file mlx5_glue.h with file mlx5_prm.h
in file mlx5_common_mp.h. The new inclusion defines 'enum ibv_wq_state'
which is used in file mlx5_common_mp.h and causes Windows compilation
warnings if not declared in advance.
Fixes: 9d60f54569fd ("commo
This commit implements mlx5_os_open_device() API. It calls glue API
open_device() then glue API query_device() to fill in 'struct
mlx5_context' with data for later usage.
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/windows/mlx5_os.c | 43 ++
1 file changed,
This commit implements mlx5_flow_os_create_flow_action_dest_devx_tir()
API as the Linux rdma-core equivalent. Missing rdma-core parameters are
added to file mlx5_win_defs.h. The action TIR id and type
(MLX5_FLOW_CONTEXT_DEST_TYPE_TIR) are saved in the action struct. The
action struct will be added
From: Tal Shnaiderman
This commit implements mlx5_is_removed() API. A new glue call
'init_shutdown_event' is added to support the new API.
Signed-off-by: Tal Shnaiderman
---
drivers/common/mlx5/windows/mlx5_glue.c| 21 +
drivers/common/mlx5/windows/mlx5_glue.h| 1 +
This commit implements the mlx5_flow_os_create_flow_matcher() API. It is
the Linux rdma-core equivalent implementation. Missing rdma-core
parameters (e.g. struct mlx5dv_flow_match_parameters) are added to file
mlx5_win_defs.h. The API allocates space to hold the PRM bits in PRM
fte_match_param form
There are three types of eth_dev_ops: primary, secondary and isolate
represented in three callback tables per OS. In this commit the OS
specific eth dev tables are unified into shared tables in file mlx5.c.
Starting from this commit all operating systems must implement the same
eth dev APIs. In ca
From: Tal Shnaiderman
Windows warns on missing function prototype get_if_name. To fix it -
move the prototype to shared file mlx5.h and add missing definition
IF_NAMESIZE to Windows mlx5_os.h file.
Fixes: e9c0b96e3526 ("net/mlx5: move Linux ifname function")
Cc: sta...@dpdk.org
Signed-off-by: T
From: Tal Shnaiderman
This commits implements API mlx5_get_mac(). It returns the MAC address
saved in the device context since its creation.
Signed-off-by: Tal Shnaiderman
---
drivers/net/mlx5/windows/meson.build | 1 +
drivers/net/mlx5/windows/mlx5_ethdev_os.c | 43
Add mlx5 as the first driver to be compiled under Windows (file
drivers/net/meson.build).
Signed-off-by: Ophir Munk
---
drivers/net/meson.build | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index 4e4c2c9..a341962 10
From: Tal Shnaiderman
This commit adds a new glue function query_rt_values to support the new
API mlx5_read_clock().
Signed-off-by: Tal Shnaiderman
---
drivers/common/mlx5/mlx5_prm.h | 1 +
drivers/common/mlx5/windows/mlx5_glue.c| 26 ++
drivers/common/
This commit adds stubs to VLAN VM operations. It is the Windows
equivalent implementation of (1). The Linux implementation was based on
Netlink APIs which are not supported in Windows.
(1)
commit 7af10d29a4a0 ("net/mlx5/linux: refactor VLAN")
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/win
Use macro HAVE_INFINIBAND_VERBS_H to successfully compile files both
under Linux and Windows (or any non Linux in general). Under Windows
this macro:
1. Hides Verbs references.
2. Exposes required DV structs that are under ifdefs related to rdma
core.
Linux code under definitions such as #ifdef HA
This commit implements mlx5_flow_os_create_flow() API. It is equivalent
to Linux rdma-core implementation. The API receives the matcher mask,
matcher value and an array of actions. They are copied into a PRM-like
struct devx_fs_rule_add_in. Then glue API devx_fs_rule_add() is called.
Signed-off-by
From: Tal Shnaiderman
This commit implements API mlx5_get_mtu(). It returns the MTU size as
saved in the device context since its creation.
Signed-off-by: Tal Shnaiderman
---
drivers/net/mlx5/windows/mlx5_ethdev_os.c | 27 +++
1 file changed, 27 insertions(+)
diff --gi
Wrap glue call dr_create_flow_action_default_miss() with an OS API. This
commit is a follow up on (1).
(1)
commit d4d85aa6f13a ("common/mlx5: add default miss action")
commit b293fbf9672b ("net/mlx5: add OS specific flow actions operations")
Signed-off-by: Ophir Munk
---
drivers/net/mlx5/linux/
From: Tal Shnaiderman
Add support for mlx5_link_update() to get link speed and link state.
Other parameters are currently hard-coded.
Signed-off-by: Tal Shnaiderman
---
drivers/net/mlx5/windows/mlx5_ethdev_os.c | 39 +++
1 file changed, 39 insertions(+)
diff --git
1 - 100 of 385 matches
Mail list logo