History log of /dpdk/drivers/net/ntnic/ntnic_ethdev.c (Results 1 – 25 of 35)
Revision Date Author Comments
# 6019656d 30-Oct-2024 Oleksandr Kolomeiets <okl-plv@napatech.com>

net/ntnic: add MTU configuration

Add supporting API rte_eth_dev_set_mtu

Signed-off-by: Oleksandr Kolomeiets <okl-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>


# 87b3bb06 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add flow async create/destroy

Implementation for async create and destroy flow.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>


# e0d9b3cd 30-Oct-2024 Serhii Iliushyk <sil-plv@napatech.com>

net/ntnic: remove unnecessary casting and macro

Type casting:
The dev_private has type void * and type casting is not necessary.
FLOW_DEBUG condition
Use the dynamic logging

Signed-off-by:

net/ntnic: remove unnecessary casting and macro

Type casting:
The dev_private has type void * and type casting is not necessary.
FLOW_DEBUG condition
Use the dynamic logging

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 2407c755 30-Oct-2024 Serhii Iliushyk <sil-plv@napatech.com>

net/ntnic: migrate to DPDK spinlock

Migrate form the pthread to rte_spinlock

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>


# c35c06fb 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add meter module

Meter module was added:
1. add/remove profile
2. create/destroy flow
3. add/remove meter policy
4. read/update stats

eth_dev_ops struct was extended with ops above.

Sig

net/ntnic: add meter module

Meter module was added:
1. add/remove profile
2. create/destroy flow
3. add/remove meter policy
4. read/update stats

eth_dev_ops struct was extended with ops above.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 4f0f5ab0 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add termination thread

Introduce clear_pdrv to unregister driver from global tracking.

Modify drv_deinit to call clear_pdirv and ensure safe termination.

Add flm sta and age event free.

net/ntnic: add termination thread

Introduce clear_pdrv to unregister driver from global tracking.

Modify drv_deinit to call clear_pdirv and ensure safe termination.

Add flm sta and age event free.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# c0d44442 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add flow aging event

Port thread was extended with new age event callback handler.
LRN, INF, STA registers getter setter was added.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com

net/ntnic: add flow aging event

Port thread was extended with new age event callback handler.
LRN, INF, STA registers getter setter was added.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# a7e77283 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add scrub registers

Scrub fields were added to the FPGA map file Remove duplicated macro

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napate

net/ntnic: add scrub registers

Scrub fields were added to the FPGA map file Remove duplicated macro

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# e7e49ce6 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add flow statistics

xstats was extended with flow statistics support.

Additional counters that shows learn, unlearn, lps, aps and other.

Signed-off-by: Danylo Vodopianov <dvo-plv@napate

net/ntnic: add flow statistics

xstats was extended with flow statistics support.

Additional counters that shows learn, unlearn, lps, aps and other.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# cf6007ea 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add xstats

Extended statistics implementation and initialization were added.

Extended set of operations for eth dev with xstats support.

Signed-off-by: Danylo Vodopianov <dvo-plv@napate

net/ntnic: add xstats

Extended statistics implementation and initialization were added.

Extended set of operations for eth dev with xstats support.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# a1ba8c47 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add statistics poll

Mechanism which poll statistics module and update values with DMA
module.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@n

net/ntnic: add statistics poll

Mechanism which poll statistics module and update values with DMA
module.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# effa0469 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add statistics

Statistics init, setup, get, reset, and their implementation was added.

Statistics FPGA defines were added.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-

net/ntnic: add statistics

Statistics init, setup, get, reset, and their implementation was added.

Statistics FPGA defines were added.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 8eed292b 30-Oct-2024 Serhii Iliushyk <sil-plv@napatech.com>

net/ntnic: enable RSS

Enable receive side scaling

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>


# 96c8249b 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: learn flow queue handling

Implements thread for handling flow learn queue

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>


# ed01e436 30-Oct-2024 Serhii Iliushyk <sil-plv@napatech.com>

net/ntnic: support flow offload

Enable flow ops getter.

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>


# b01eb812 30-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add flow dev configuration

This API allows enabling of flow profile for NT SmartNIC.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.c

net/ntnic: add flow dev configuration

This API allows enabling of flow profile for NT SmartNIC.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# da25ae3c 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add packet handler for virtio queues

Added functionality to handles the copying of segmented queue data
into a rte_mbuf and vice versa.

Added functionality to manages packet transmission

net/ntnic: add packet handler for virtio queues

Added functionality to handles the copying of segmented queue data
into a rte_mbuf and vice versa.

Added functionality to manages packet transmission for a
specified TX and RX queues.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 6b0047fa 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add queue setup operations

Added TX and RX queue setup. Handles memory allocation
and hardware Virtio queue setup.

Allocates and configures memory for hardware Virtio queues,
including h

net/ntnic: add queue setup operations

Added TX and RX queue setup. Handles memory allocation
and hardware Virtio queue setup.

Allocates and configures memory for hardware Virtio queues,
including handling IOMMU and VFIO mappings.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 5284180a 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add scatter-gather HW deallocation

Deallocates memory for hardware Virtio queues and unmaps
VFIO resources.

Updated eth_tx_queue_release and eth_rx_queue_release. Released
hardware Virti

net/ntnic: add scatter-gather HW deallocation

Deallocates memory for hardware Virtio queues and unmaps
VFIO resources.

Updated eth_tx_queue_release and eth_rx_queue_release. Released
hardware Virtio queues for TX and RX.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# b0cd36e9 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: enhance Ethernet device configuration

Added eth_dev_close function to handle closing of Ethernet devices.
It releases managed RX/TX virtual queues.

Initialized scatter-gather queue syste

net/ntnic: enhance Ethernet device configuration

Added eth_dev_close function to handle closing of Ethernet devices.
It releases managed RX/TX virtual queues.

Initialized scatter-gather queue system.

Defined constants and macros for hardware RX/TX descriptors and
packet buffer sizes.

Defined structures for RX and TX packet headers including
fields for packet length, descriptors, and color types.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# fe91ade9 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: add basic queue operations

Adds support for queue configure, start, stop, release.
The internal macro and functions of ntnic were also added and
initialized.

Signed-off-by: Danylo Vodopi

net/ntnic: add basic queue operations

Adds support for queue configure, start, stop, release.
The internal macro and functions of ntnic were also added and
initialized.

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 3489b87b 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: extend and fix logging

Add suffixes logging
Fix the issue with the configuration log level for a specific module
Fix extended debug logging
3-letter abbreviation for log type
Upda

net/ntnic: extend and fix logging

Add suffixes logging
Fix the issue with the configuration log level for a specific module
Fix extended debug logging
3-letter abbreviation for log type
Update documentation
new log modules were added
Log level in functions that initialize feature operations
was updated from INFO to DEBUG to avoid noisy traces
during driver startup.
log level for ops init was changed
nim and PMD modules was replaced with NTNIC
NIM module was replaced with NTNIC according to the ntnic log
convention.

Signed-off-by: Oleksandr Kolomeiets <okl-plv@napatech.com>
Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 7fa6075d 10-Oct-2024 Oleksandr Kolomeiets <okl-plv@napatech.com>

net/ntnic: remove extra release port call

During rte_eth_dev_close execution,
eth_dev_close function exported by ntnic is called,
followed by a call to rte_eth_dev_release_port.

Since there is no p

net/ntnic: remove extra release port call

During rte_eth_dev_close execution,
eth_dev_close function exported by ntnic is called,
followed by a call to rte_eth_dev_release_port.

Since there is no possible returns between the calls,
calling rte_eth_dev_release_port from eth_dev_close
is redundant and error-prone.

Signed-off-by: Oleksandr Kolomeiets <okl-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 3de5fe79 10-Oct-2024 Danylo Vodopianov <dvo-plv@napatech.com>

net/ntnic: fix Coverity warnings

CI founc couple coverity problems which were fixed in this commit.

CID 440550, 440551, 440545, 440553, 440552, 440547:
Null pointer dereferences (REVERSE_INULL)
Th

net/ntnic: fix Coverity warnings

CI founc couple coverity problems which were fixed in this commit.

CID 440550, 440551, 440545, 440553, 440552, 440547:
Null pointer dereferences (REVERSE_INULL)
These issues were fixed by reworking variable NULL checking and adding
NULL checking before var using.

CID 440543: Incorrect expression (IDENTICAL_BRANCHES)
This issue was fixed by removing useless if statements from the code.

CID 440548: Null pointer dereferences (FORWARD_NULL)
This issue was fixed by adding NULL checking before
mp_fld_rst_serdes_rx var using.

CID 440546: Resource leaks (RESOURCE_LEAK)
This issue was fixed by moving NULL checking before var using.

CID 440540: Error handling issues (CHECKED_RETURN)
This issue was fixed with return value checking adding.

CID 440549: (OVERRUN)
This issue was fixed with array edge values fixing.

Coverity issue: 440550, 440551, 440545, 440553, 440552, 440547
Coverity issue: 440540, 440543, 440546, 440548, 440549
Fixes: 51052594f795 ("net/ntnic: add physical layer control module")
Cc: stable@dpdk.org

Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com>
Acked-by: Serhii Iliushyk <sil-plv@napatech.com>

show more ...


# 9147e9f9 17-Jul-2024 Serhii Iliushyk <sil-plv@napatech.com>

net/ntnic: add basic link management

Add functionality to read and control the link-state of the ntnic.
Note that must functions are not implemented yet.

Adds the following eth_dev_ops:
- dev_set_l

net/ntnic: add basic link management

Add functionality to read and control the link-state of the ntnic.
Note that must functions are not implemented yet.

Adds the following eth_dev_ops:
- dev_set_link_up
- dev_set_link_down
- link_update
- mac_addr_add
- mac_addr_set
- set_mc_addr_list
- promiscuous_enable

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com>

show more ...


12