From: Sunil Kumar Kori
To enable support for ingress meter, supported operations
are exposed for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
From: Sunil Kumar Kori
Implement ethdev operation to get meter capabilities for
CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase su
From: Sunil Kumar Kori
Implement API to add meter profile for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on latest DP
From: Sunil Kumar Kori
Implement API to delete meter profile for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on latest
From: Sunil Kumar Kori
Implement API to validate meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on lates
From: Sunil Kumar Kori
Implement API to add meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on latest DPD
From: Sunil Kumar Kori
Implement API to delete meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on latest
From: Sunil Kumar Kori
Implement API to create meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on lates
From: Sunil Kumar Kori
Implement API to delete meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase support on lates
From: Sunil Kumar Kori
Implement API to enable or disable meter instance for
CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming convention
v2:
- Rebase suppo
From: Sunil Kumar Kori
Implement API to update DSCP table for pre-coloring for
incoming packet per nixlf for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix namin
From: Sunil Kumar Kori
Implement API to read and update stats corresponding to
given meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
- Fix naming con
From: Sunil Kumar Kori
Meters are configured per flow using rte_flow_create API.
Implement support for meter action applied on the flow.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Rakesh Kudurumalla
---
v3:
- Rebase support on latest DPDK
- Handled multilevel chaining for tree hierarchy
From: Jerin Jacob
NIC HW controllers often come with congestion management support on
various HW objects such as Rx queue depth or mempool queue depth.
Also, it can support various modes of operation such as RED
(Random early discard), WRED etc on those HW objects.
This patch adds a framework t
From: Sunil Kumar Kori
Support congestion management CLIs.
Depends-on: patch-24902 ("ethdev: support congestion management")
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- Rebase on top of the dpdk-next-net-mrvl/for-next-net
app/test-pmd/cmdline.c | 15 +
app/test-pmd/c
From: Sunil Kumar Kori
Support congestion management.
Depends-on: patch-24902 ("ethdev: support congestion management")
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- Rebase on top of the dpdk-next-net-mrvl/for-next-net
- Aligned with congestion management v3 spec
doc/guides/nics/features/c
From: Sunil Kumar Kori
Add congestion management RoC APIs.
Depends-on: patch-24902 ("ethdev: support congestion management")
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- Rebase on top of the dpdk-next-net-mrvl/for-next-net
drivers/common/cnxk/roc_nix.h | 5 ++
drivers/common/cnxk/r
From: Sunil Kumar Kori
To support ingress policer on CN10K, MBOX interfaces and HW
definitions are synced.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/hw/nix.h | 13 ++---
drivers/common/cnxk/roc_mbox.h | 34 +-
2 files changed, 43 insertio
From: Sunil Kumar Kori
CN10K platform supports policer up to 3 level of hierarchy.
Implement RoC API to get corresponding index for given level.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/meson.build| 1 +
drivers/common/cnxk/roc_nix.h | 11 +++
drivers/common/cn
From: Sunil Kumar Kori
Implement interface to get available profile count for given
nixlf.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 5
drivers/common/cnxk/roc_nix_bpf.c | 46 +++
drivers/common/cnxk/version.map | 1 +
3 files
From: Sunil Kumar Kori
Implement RoC API to allocate HW resources i.e. bandwidth
profiles for policer processing on CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 11
drivers/common/cnxk/roc_nix_bpf.c | 104 ++
drivers/
From: Sunil Kumar Kori
Implement RoC interface to free HW bandwidth profiles on
CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 6 +
drivers/common/cnxk/roc_nix_bpf.c | 40 +++
drivers/common/cnxk/version.map | 2 ++
3
From: Sunil Kumar Kori
Implement RoC API to configure HW bandwidth profile for
CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 108 +++
drivers/common/cnxk/roc_nix_bpf.c | 223 ++
drivers/common/cnxk/version.map
From: Sunil Kumar Kori
Implement RoC API to enable or disable HW bandwidth profiles
on CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 4
drivers/common/cnxk/roc_nix_bpf.c | 36 +++
drivers/common/cnxk/version.map | 1
From: Sunil Kumar Kori
Implement RoC API to dump bandwidth profile on CN10K
platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 3 ++
drivers/common/cnxk/roc_nix_bpf.c | 86 ++
drivers/common/cnxk/roc_platform.h | 1 +
drivers/commo
From: Sunil Kumar Kori
For initial coloring of input packet, CN10K platform maintains
precolor table for VLAN, DSCP and Generic. Implement RoC
interface to setup pre color table.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 20
drivers/common/cnxk/roc_nix_bpf.c
From: Sunil Kumar Kori
To maintain chain of bandwidth profiles, they needs to be
connected. Implement RoC API to connect two bandwidth profiles
at different levels.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 6 ++
drivers/common/cnxk/roc_nix_bpf.c | 36 +++
From: Sunil Kumar Kori
CN10K platform supports different stats for HW bandwidth profiles.
Implement RoC API to get index for given stats type.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 18
drivers/common/cnxk/roc_nix_bpf.c | 34 +++
From: Sunil Kumar Kori
CN10K platform provides statistics per bandwidth profile and
per nixlf. Implement RoC API to read stats for given bandwidth
profile.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 9 ++
drivers/common/cnxk/roc_nix_bpf.c | 197 ++
From: Sunil Kumar Kori
Implement RoC API to reset stats per bandwidth profile
or per nixlf.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 7 ++
drivers/common/cnxk/roc_nix_bpf.c | 113 ++
drivers/common/cnxk/version.map | 2 +
3 files
From: Sunil Kumar Kori
Meter action is added in supported action list.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_npc.h | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h
index bab25fd72e..085
From: Sunil Kumar Kori
To enable support for ingress meter, supported operations
are exposed for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev.c | 1 +
drivers/net/cnxk/cn10k_ethdev.h | 2 ++
drivers/net/cnxk/cn10k_ethdev_mtr.c | 18 +++
From: Sunil Kumar Kori
Implement ethdev operation to get meter capabilities for
CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 48 +
1 file changed, 48 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/driv
From: Sunil Kumar Kori
Implement API to add meter profile for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 104
drivers/net/cnxk/cnxk_ethdev.h | 13
2 files changed, 117 insertions(+)
diff --git a/drivers/net
From: Sunil Kumar Kori
Implement API to delete meter profile for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 30 +
1 file changed, 30 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/drivers/net/cnxk/cn
From: Sunil Kumar Kori
Implement API to validate meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 63 +
1 file changed, 63 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/drivers/net/cnxk/c
From: Sunil Kumar Kori
Implement API to add meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 47 +
drivers/net/cnxk/cnxk_ethdev.h | 12
2 files changed, 59 insertions(+)
diff --git a/drivers/ne
From: Sunil Kumar Kori
Implement API to delete meter policy for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/drivers/net/cnxk/cn10k_
From: Sunil Kumar Kori
Implement API to create meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 75 +
drivers/net/cnxk/cnxk_ethdev.h | 20
2 files changed, 95 insertions(+)
diff --git a/drive
From: Sunil Kumar Kori
Implement API to delete meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 82 +
1 file changed, 82 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/drivers/net/cnxk/c
From: Sunil Kumar Kori
Implement API to enable or disable meter instance for
CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 60 +
1 file changed, 60 insertions(+)
diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c
b/drivers
From: Sunil Kumar Kori
Implement API to update DSCP table for pre-coloring for
incoming packet per nixlf for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 43 +
drivers/net/cnxk/cnxk_ethdev.h | 1 +
2 files changed,
From: Sunil Kumar Kori
Implement API to read and update stats corresponding to
given meter instance for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cn10k_ethdev_mtr.c | 141
1 file changed, 141 insertions(+)
diff --git a/drivers/net/cnxk/c
From: Sunil Kumar Kori
Meters are configured per flow using rte_flow_create API.
Implement support for meter action applied on the flow.
Signed-off-by: Sunil Kumar Kori
---
doc/guides/nics/features/cnxk.ini| 1 +
doc/guides/nics/features/cnxk_vf.ini | 1 +
drivers/net/cnxk/cn10k_ethdev
From: Sunil Kumar Kori
Support congestion management CLIs.
Signed-off-by: Sunil Kumar Kori
Acked-by: Aman Singh
---
v2..v3:
- Move Congestion management document section near TM section
- Rebase on top of the dpdk/main
v1..v2:
- Rebase on top of the dpdk-next-net-mrvl/for-next-net
app/tes
From: Sunil Kumar Kori
Support congestion management CLIs.
Signed-off-by: Sunil Kumar Kori
Acked-by: Aman Singh
---
v3..v4:
- Fix build error
v2..v3:
- Move Congestion management document section near TM section
- Rebase on top of the dpdk/main
v1..v2:
- Rebase on top of the dpdk-next-net-
From: Sunil Kumar Kori
Validation is added to check minimum and maximum RED
threshold values, passed by user.
Fixes: b7d3a0fe71eb ("net/cnxk: support congestion management operations")
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_ethdev_cman.c | 5 +
1 file changed, 5 inserti
From: Sunil Kumar Kori
Due to limitation, imposed by latest kernel, maximum number of
channel supported per LMAC is reduced to 8. Because of this change
application gets failed to initialize for more channels.
Also this limitation impacts PFC functional behaviour.
So patch just aligns the suppo
From: Sunil Kumar Kori
Using rte_mtr_color_in_protocol_set(), user can configure
combination of protocol headers, like outer_vlan and outer_ip,
can be enabled on given meter object.
But rte_mtr_meter_vlan_table_update() and
rte_mtr_meter_dscp_table_update() do not have information that
which tab
From: Sunil Kumar Kori
Adds support for priority flow control support for CNXK
platforms.
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- fix application restart issue.
v2..v3:
- fix pause quanta configuration for cn10k.
- fix review comments.
v3..v4:
- fix PFC configuration with other ty
From: Sunil Kumar Kori
CNXK platforms support priority flow control(802.1qbb) to pause
respective traffic per class on that link.
Adds RoC interface to configure priority flow control on MAC
block i.e. CGX on cn9k and RPM on cn10k.
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- fix RoC API nam
From: Sunil Kumar Kori
Adds support for priority flow control support for CNXK
platforms.
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- fix application restart issue.
v2..v3:
- fix pause quanta configuration for cn10k.
- fix review comments.
v3..v4:
- fix PFC configuration with other ty
From: Sunil Kumar Kori
CNXK platforms support priority flow control(802.1qbb) to pause
respective traffic per class on that link.
Adds RoC interface to configure priority flow control on MAC
block i.e. CGX on cn9k and RPM on cn10k.
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- fix RoC API nam
From: Jerin Jacob
Currently, meter object supports only DSCP based on input color table,
The patch enhance that to support VLAN based input color table,
color table based on inner field for the tunnel use case, and support
for fallback color per meter if packet based on a different field.
All of
From: Sunil Kumar Kori
As per new spec in DPDK, VLAN priority is supported for
precoloring of input packet.
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_nix.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h
From: Sunil Kumar Kori
Implement API to update VLAN table for pre-coloring for
incoming packet per nixlf for CN10K platform.
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_ethdev.h | 2 +-
drivers/net/cnxk/cnxk_ethdev_mtr.c | 214 +
2 files changed,
From: Sunil Kumar Kori
Support for input coloring is added based on VLAN. Patch
adds support for the same.
Signed-off-by: Sunil Kumar Kori
---
app/test-pmd/cmdline.c | 1 +
app/test-pmd/cmdline_mtr.c | 348 -
app/test-pmd/cmdline_mtr.h | 1 +
3 files
From: Sunil Kumar Kori
hot_plug application does not perform any port setup
configuration via rte_eth_dev_configure() API. All the probed
Ethernet ports do not contain any Rx and Tx queues.
While detaching a device via rte_eal_hotplug_remove(), CNXK
driver expects Rx and Tx queues structures pop
From: Sunil Kumar Kori
On Tx, lastseg->next is not being reset to null for multi segmented packet
and same mbuf can be used on Rx which has a stale mbuf entry into
mbuf->next.
On Rx, application receives mbuf with mbuf->next uninitialized though
mbuf->nb_segs is correct. Application iterates ove
From: Pawel Wodkowski
trace_mem is declared as 'void *' which triggers following error:
'...invalid conversion from ‘void*’ to ‘__rte_trace_header*’
[-fpermissive]...'
Fix this by adding proper typecast to 'struct __rte_trace_header *'.
Fixes: ebaee6409702 ("trace: simplify trace point headers"
From: Sunil Kumar Kori
Bugzilla ID: 1513
Fixes: 39ac394aa7a8 ("common/cnxk: fix device MSI-X greater than default value")
Cc: sta...@dpdk.org
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/roc_irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnx
From: Sunil Kumar Kori
Bugzilla ID: 1513
Fixes: 03b152389fb1 ("net/cnxk: add option to enable custom inbound SA")
Fixes: 7df4ead35436 ("net/cnxk: support parsing custom SA action")
Fixes: 47cca253d605 ("net/cnxk: support Rx inject")
Cc: sta...@dpdk.org
Signed-off-by: Sunil Kumar Kori
---
drive
From: Sunil Kumar Kori
Bugzilla ID: 1513
Fixes: 72c00ae9dba7 ("regex/cn9k: use cnxk infrastructure")
Cc: sta...@dpdk.org
Signed-off-by: Sunil Kumar Kori
---
drivers/regex/cn9k/cn9k_regexdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regex/cn9k/cn9k_regexdev.c
From: Sunil Kumar Kori
When user requests to configure a device which is already in
configured state then first device gets resets to default and
then reconfigured with latest parameters.
While resetting the device, MAC address table is left stale which
causes entry update in later state.
Hence
From: Sunil Kumar Kori
rte_eth_fp_ops contains ops for fast path APIs. Each API
validates availability of callback and then invoke it.
Removing these NULL checks instead using dummy callbacks.
Signed-off-by: Sunil Kumar Kori
---
lib/ethdev/ethdev_driver.c | 47 ++
lib/ethd
From: Sunil Kumar Kori
As rte_eth_rx_queue_count() returns signed value to represent
the error cases but internally invoked callback is returning
unsigned value. Hence unnecessary type conversion is done.
To avoid this typecasting from signed to unsigned, fixed
return type of callback functions.
From: Sunil Kumar Kori
rte_eth_fp_ops contains ops for fast path APIs. Each API
validates availability of callback and then invoke it.
These checks impact data path performace.
Hence removing these NULL checks instead using dummy
callbacks.
Signed-off-by: Sunil Kumar Kori
---
lib/ethdev/ethde
From: Sunil Kumar Kori
hdr_lens is used to maintain header lengths after parsing packets.
When port receives different type of packets (say first is VXLAN
packet and second is GRE packet).
For first packet, L2/L3/L4 lengths are set for inner and outer header
alongwith tunnel_len.
Now for second
From: Sunil Kumar Kori
While parsing packet headers, offset must be added to get next
header but for geneve header parsing offset is overwritten.
Also inner_l2_len is not set in case of geneve packets.
Fixes: 64ed7f854cf4 ("net: add tunnel packet type parsing")
Signed-off-by: Sunil Kumar Kori
From: Sunil Kumar Kori
While parsing packet headers, offset must be added to get next
header but for geneve header parsing offset is overwritten.
Also inner_l2_len is not set in case of geneve packets.
Fixes: 64ed7f854cf4 ("net: add tunnel packet type parsing")
Signed-off-by: Sunil Kumar Kori
From: Sunil Kumar Kori
hdr_lens is used to maintain header lengths after parsing packets.
When port receives different type of packets (say first is VXLAN
packet and second is GRE packet).
For first packet, L2/L3/L4 lengths are set for inner and outer header
alongwith tunnel_len.
Now for second
From: Sunil Kumar Kori
When user requests to configure a device which is already in
configured state then first device gets resets to default and
then reconfigured with latest parameters.
While resetting the device, MAC address table is left stale which
causes entry update in later state.
Hence
From: Sunil Kumar Kori
Currently speed capability is hardcoded to support defined
modes and speeds but MAC can support others modes and speed
too. This information is populated by firmware.
Hence fetching firmware data to provide actual supported
modes and speeds by the port.
Signed-off-by: Nit
From: Sunil Kumar Kori
Reports link mode whether fixed or autonegotiation
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_link.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/cnxk/cnxk_link.c b/drivers/net/cnxk/c
From: Sunil Kumar Kori
As a port can be configured to operate on specific
mode and speed via struct rte_eth_conf::link_speeds
in rte_eth_dev_configure() API.
Implement mentioned configuration passed by user.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Nithin Dabilpuram
---
drivers/net/cnx
From: Sunil Kumar Kori
As a port can be configured at one of the supported speed
which can be part of specific link mode.
Port type helps to translate speed into the respective mode.
Hence add support to provide link type as part of link
status if available from ethdev driver.
Signed-off-by: N
From: Sunil Kumar Kori
CGX MAC can be configured into different modes and speeds
as mentioned below:
- fixed/autoneg
- half/full duplex
- 10M/100M/1G/10G etc speeds.
Sync mailbox and implement that to configure above mentioned
settings.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Nithin
From: Sunil Kumar Kori
Retrieves type of port from firmware data.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/hw/nix.h | 12
drivers/common/cnxk/roc_mbox.h| 13 +++--
drivers/common/cnxk/roc_nix.h | 1 +
drivers/c
From: Sunil Kumar Kori
As a port can be configured to operate on specific
mode and speed via struct rte_eth_conf::link_speeds
in rte_eth_dev_configure() API.
Implement mentioned configuration passed by user.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Nithin Dabilpuram
---
drivers/net/cnx
From: Sunil Kumar Kori
Currently speed capability is hardcoded to support defined
modes and speeds but MAC can support others modes and speed
too. This information is populated by firmware.
Hence fetching firmware data to provide actual supported
modes and speeds by the port.
Signed-off-by: Nit
From: Sunil Kumar Kori
Adding link type parameter to provide the type
of port like twisted pair, fibre etc.
Also added an API to convert the RTE_ETH_LINK_TYPE_XXX
to a readable string.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
v1..v2:
- Updated the commit message.
From: Sunil Kumar Kori
Add support to provide link type as part of link status
if available from ethdev driver.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
lib/ethdev/ethdev_trace.h| 7 +
lib/ethdev/ethdev_trace_points.c | 3 +++
lib/ethdev/rte_ethdev.c
From: Sunil Kumar Kori
CGX MAC can be configured into different modes and speeds
as mentioned below:
- fixed/autoneg
- half/full duplex
- 10M/100M/1G/10G etc speeds.
Sync mailbox and implement that to configure above mentioned
settings.
Signed-off-by: Sunil Kumar Kori
Signed-off-by: Nithin
From: Sunil Kumar Kori
Retrieves type of port from firmware data.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/common/cnxk/hw/nix.h | 12
drivers/common/cnxk/roc_mbox.h| 13 +++--
drivers/common/cnxk/roc_nix.h | 1 +
drivers/c
From: Sunil Kumar Kori
Retrieves type of port i.e. twisted pair, fibre etc
from firmware and reports the same to user.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_ethdev.c | 19 +++
drivers/net/cnxk/cnxk_ethdev.h | 1 +
drivers/n
From: Sunil Kumar Kori
Retrieves type of port i.e. twisted pair, fibre etc
from firmware and reports the same to user.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_ethdev.c | 19 +++
drivers/net/cnxk/cnxk_ethdev.h | 1 +
drivers/n
From: Sunil Kumar Kori
Reports link mode whether fixed or autonegotiation
Depends-on: patch-35378 ("ethdev: add support to provide link type")
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Sunil Kumar Kori
---
drivers/net/cnxk/cnxk_link.c | 4 ++--
1 file changed, 2 insertions(+), 2 deleti
From: Sunil Kumar Kori
As rte_eth_rx_queue_count() returns signed value to represent
the error cases but internally invoked callback is returning
unsigned value. Hence unnecessary type conversion is done.
To avoid this typecasting from signed to unsigned, fixed
return type of callback functions.
From: Sunil Kumar Kori
rte_eth_fp_ops contains ops for fast path APIs. Each API
validates availability of callback and then invoke it.
These checks impact data path performace.
Hence removing these NULL checks instead using dummy
callbacks.
Signed-off-by: Sunil Kumar Kori
Acked-by: Morten Brør
301 - 389 of 389 matches
Mail list logo