[PATCH v5 14/14] bus/vmbus: update MAINTAINERS and docs

2022-04-26 Thread Srikanth Kaka
updated MAINTAINERS and doc files for FreeBSD support Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- MAINTAINERS| 2 ++ doc/guides/nics/netvsc.rst | 11 +++ 2 files changed, 13 insertions(+) diff --git a/MAINTAINERS b

[PATCH v5 13/14] bus/vmbus: add meson support for FreeBSD

2022-04-26 Thread Srikanth Kaka
add meson support for FreeBSD OS Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index

[PATCH v5 12/14] net/netvsc: moving hotplug retry to OS dir

2022-04-26 Thread Srikanth Kaka
Moved netvsc_hotplug_retry to respective OS dir as it contains OS dependent code. For Linux, it is copied as is and for FreeBSD it is not supported yet. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 5

[PATCH v5 11/14] bus/vmbus: get subchannel info

2022-04-26 Thread Srikanth Kaka
Using sysctl, all the subchannel's attributes are fetched Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/drivers/bus/

[PATCH v5 10/14] net/netvsc: make IOCTL call to open subchannels

2022-04-26 Thread Srikanth Kaka
make IOCTL call to open subchannels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/hn_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 8b1e07b

[PATCH v5 09/14] bus/vmbus: open subchannels

2022-04-26 Thread Srikanth Kaka
them implicitly. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 30 ++ drivers/bus/vmbus/linux/vmbus_uio.c | 12 drivers/bus/vmbus/private.h | 1 + drivers/bus

[PATCH v5 08/14] bus/vmbus: add sub-channel mapping support

2022-04-26 Thread Srikanth Kaka
To map the subchannels, an mmap request is directly made after determining the subchan memory offset Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 48 +++ 1 file changed, 48

[PATCH v5 07/14] net/netvsc: make event monitor OS dependent

2022-04-26 Thread Srikanth Kaka
- Event monitoring is not yet supported on FreeBSD, hence moving it to the OS specific files - Add meson support to OS environment Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 16 drivers

[PATCH v5 06/14] bus/vmbus: get device resource values using sysctl

2022-04-26 Thread Srikanth Kaka
uio.0.monitor_page.size: 4096 dev.hv_uio.0.int_page.size: 4096 Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 105 drivers/bus/vmbus/linux/vmbus_uio.c | 16 + drivers/bus/vmbus

[PATCH v5 05/14] bus/vmbus: handle mapping of device resources

2022-04-26 Thread Srikanth Kaka
All resource values are published by HV_UIO driver as sysctl key value pairs and they are read at a later point of the code flow Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 18 ++ 1 file

[PATCH v5 04/14] bus/vmbus: scan and get the network device on FreeBSD

2022-04-26 Thread Srikanth Kaka
Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c

[PATCH v5 03/14] bus/vmbus: move OS independent UIO functions

2022-04-26 Thread Srikanth Kaka
Moved all Linux independent UIO functions to unix dir. Split the vmbus_uio_map_subchan() by keeping OS dependent code in vmbus_uio_map_subchan_os() function Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_uio.c | 292

[PATCH v5 02/14] bus/vmbus: move independent bus functions

2022-04-26 Thread Srikanth Kaka
move independent Linux bus functions to OS independent file Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_bus.c | 15 --- drivers/bus/vmbus/unix/vmbus_unix_bus.c | 17 + 2 files changed

[PATCH v5 01/14] bus/vmbus: move independent code from Linux

2022-04-26 Thread Srikanth Kaka
Move the OS independent code from Linux dir in-order to be used by FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_bus.c | 13 + drivers/bus/vmbus/meson.build | 5 + drivers/bus

[PATCH v5 00/14] add FreeBSD support to VMBUS & NetVSC PMDs

2022-04-26 Thread Srikanth Kaka
out of Linux v3: - split the patches into further logical parts - updated docs v2: - replaced strncpy with memcpy - replaced malloc.h with stdlib.h - added comment in linux/vmbus_uio.c v1: Intial release Srikanth Kaka (14): bus/vmbus: move independent code from Linux bus/vmbus: move

[PATCH v4 14/14] bus/vmbus: update MAINTAINERS and docs

2022-04-19 Thread Srikanth Kaka
updated MAINTAINERS and doc files for FreeBSD support Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- MAINTAINERS| 2 ++ doc/guides/nics/netvsc.rst | 11 +++ 2 files changed, 13 insertions(+) diff --git a/MAINTAINERS b

[PATCH v4 13/14] bus/vmbus: add meson support for FreeBSD

2022-04-19 Thread Srikanth Kaka
add meson support for FreeBSD OS Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index

[PATCH v4 12/14] net/netvsc: moving hotplug retry to OS dir

2022-04-19 Thread Srikanth Kaka
Moved netvsc_hotplug_retry to respective OS dir as it contains OS dependent code. For Linux, it is copied as is and for FreeBSD it is not supported yet. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 5

[PATCH v4 11/14] bus/vmbus: get subchannel info

2022-04-19 Thread Srikanth Kaka
Using sysctl, all the subchannel's attributes are fetched Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/drivers/bus/vmbus/fr

[PATCH v4 10/14] net/netvsc: make IOCTL call to open subchannels

2022-04-19 Thread Srikanth Kaka
make IOCTL call to open subchannels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/hn_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 8b1e07b775

[PATCH v4 09/14] bus/vmbus: open subchannels

2022-04-19 Thread Srikanth Kaka
them implicitly. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 30 +++ drivers/bus/vmbus/linux/vmbus_uio.c | 12 +++ drivers/bus/vmbus/private.h | 1 + drivers/bus

[PATCH v4 08/14] bus/vmbus: add sub-channel mapping support

2022-04-19 Thread Srikanth Kaka
To map the subchannels, an mmap request is directly made after determining the subchan memory offset Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 48 +++ 1 file changed, 48 insertions

[PATCH v4 07/14] net/netvsc: make event monitor OS dependent

2022-04-19 Thread Srikanth Kaka
- Event monitoring is not yet supported on FreeBSD, hence moving it to the OS specific files - Add meson support to OS environment Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 16 drivers

[PATCH v4 06/14] bus/vmbus: get device resource values using sysctl

2022-04-19 Thread Srikanth Kaka
uio.0.monitor_page.size: 4096 dev.hv_uio.0.int_page.size: 4096 Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 105 ++ drivers/bus/vmbus/linux/vmbus_uio.c | 16 drivers/bus/vmbus/osi/vmbus_

[PATCH v4 05/14] bus/vmbus: handle mapping of device resources

2022-04-19 Thread Srikanth Kaka
All resource values are published by HV_UIO driver as sysctl key value pairs and they are read at a later point of the code flow Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 18 ++ 1 file

[PATCH v4 04/14] bus/vmbus: scan and get the network device on FreeBSD

2022-04-19 Thread Srikanth Kaka
Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c

[PATCH v4 03/14] bus/vmbus: move OS independent UIO functions

2022-04-19 Thread Srikanth Kaka
Moved all Linux independent UIO functions to OSI dir. Split the vmbus_uio_map_subchan() by keeping OS dependent code in vmbus_uio_map_subchan_os() function Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_uio.c | 292

[PATCH v4 02/14] bus/vmbus: move independent bus functions

2022-04-19 Thread Srikanth Kaka
move independent Linux bus functions to OSI file Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_bus.c | 15 --- drivers/bus/vmbus/osi/vmbus_osi_bus.c | 17 + 2 files changed, 17 insertions

[PATCH v4 01/14] bus/vmbus: move independent code from Linux

2022-04-19 Thread Srikanth Kaka
Move the OS independent code from Linux dir in-order to be used by FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/linux/vmbus_bus.c | 13 + drivers/bus/vmbus/meson.build | 5 + drivers/bus/vmbus

[PATCH v4 00/14] add FreeBSD support to VMBUS & NetVSC PMDs

2022-04-19 Thread Srikanth Kaka
memcpy - replaced malloc.h with stdlib.h - added comment in linux/vmbus_uio.c v1: Intial release Srikanth Kaka (14): bus/vmbus: move independent code from Linux bus/vmbus: move independent bus functions bus/vmbus: move OS independent UIO functions bus/vmbus: scan and get the network

[PATCH v3 15/15] bus/vmbus: update MAINTAINERS and docs

2022-02-17 Thread Srikanth Kaka
updated MAINTAINERS and doc files for FreeBSD support Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- MAINTAINERS| 2 ++ doc/guides/nics/netvsc.rst | 11 +++ 2 files changed, 13 insertions(+) diff --git a/MAINTAINERS b

[PATCH v3 14/15] bus/vmbus: add APIs to mask/unmask IRQs

2022-02-17 Thread Srikanth Kaka
the IRQ masking/unmasking APIs use the HV_UIO driver's read and write CBs for their work. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 15 ++ drivers/bus/vmbus/freebsd/vmbus_uio.c

[PATCH v3 13/15] net/netvsc: add meson support for FreeBSD

2022-02-17 Thread Srikanth Kaka
add meson support for FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/meson.build | 6 ++ drivers/net/netvsc/linux/meson.build | 6 ++ drivers/net/netvsc/meson.build | 3 +++ 3 files changed, 15

[PATCH v3 12/15] bus/vmbus: add meson support for FreeBSD

2022-02-17 Thread Srikanth Kaka
add meson support for FreeBSD OS Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index

[PATCH v3 11/15] net/netvsc: moving hotplug retry to OS dir

2022-02-17 Thread Srikanth Kaka
Moved netvsc_hotplug_retry to respective OS dir as it contains OS dependent code. For Linux, it is copied as is and for FreeBSD it is not supported yet. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 6

[PATCH v3 10/15] bus/vmbus: get subchannel info

2022-02-17 Thread Srikanth Kaka
Using sysctl, all the subchannel information is fetched Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 85 +++ 1 file changed, 85 insertions(+) diff --git a/drivers/bus/vmbus/freebsd

[PATCH v3 09/15] net/netvsc: make IOCTL call to open subchannels

2022-02-17 Thread Srikanth Kaka
make IOCTL call to open subchannels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/hn_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 8b1e07b775

[PATCH v3 08/15] bus/vmbus: open subchannels

2022-02-17 Thread Srikanth Kaka
them implicitly. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 30 +++ drivers/bus/vmbus/linux/vmbus_uio.c | 12 +++ drivers/bus/vmbus/private.h | 1 + drivers/bus

[PATCH v3 07/15] bus/vmbus: add stub for subchannel support API

2022-02-17 Thread Srikanth Kaka
subchannels are always supported and so making vmbus_uio_subchannels_supported() always return true. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 8 1 file changed, 8 insertions(+) diff --git a

[PATCH v3 06/15] bus/vmbus: add ring mapping APIs

2022-02-17 Thread Srikanth Kaka
Based on its channel id, mapping of primary channel or subchannel is determined. The primary channel memmory is mapped in the same way as done in Linux. For the subchannel an mmap request is directly made after determining the subchan memory offset Signed-off-by: Srikanth Kaka Signed-off-by

[PATCH v3 05/15] net/netvsc: make event monitor OS dependent

2022-02-17 Thread Srikanth Kaka
Event monitoring is not yet supported on FreeBSD, hence moving it to the OS specific files Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 16 drivers/net/netvsc/hn_ethdev.c | 7

[PATCH v3 04/15] bus/vmbus: add resource by index

2022-02-17 Thread Srikanth Kaka
Map the memory region created by hv_uio driver by passing their index number Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/drivers

[PATCH v3 03/15] bus/vmbus: get device resource values using sysctl

2022-02-17 Thread Srikanth Kaka
.size: 4096 dev.hv_uio.0.int_page.size: 4096 Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 142 ++ 1 file changed, 142 insertions(+) create mode 100644 drivers/bus/vmbus/freebsd/vmbus_uio.c

[PATCH v3 02/15] bus/vmbus: handle mapping of device resources

2022-02-17 Thread Srikanth Kaka
All resource values are published by HV_UIO driver as sysctl key value pairs and they are read at a later point of the code flow Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 18 ++ 1 file

[PATCH v3 01/15] bus/vmbus: scan and get the network device

2022-02-17 Thread Srikanth Kaka
Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c

[PATCH v3 00/15] add FreeBSD support to VMBUS & NetVSC PMDs

2022-02-17 Thread Srikanth Kaka
This patch series adds support to VMBUS & NetVSC PMDs run on FreeBSD Changelog: v3: - split the patches into further logical parts - updated docs v2: - replaced strncpy with memcpy - replaced malloc.h with stdlib.h - added comment in linux/vmbus_uio.c v1: Intial release Srikanth

[dpdk-dev] [PATCH v2 05/11] bus/vmbus: open subchannels

2021-10-08 Thread Srikanth Kaka
In FreeBSD, unlike Linux there is no sub-channel open callback that could be called by HV_UIO driver, upon their grant by the hypervisor. Thus, the PMD makes an IOCTL to the HV_UIO to open the granted sub-channels v2 - Added comment in linux/vmbus_uio.c Signed-off-by: Srikanth Kaka Signed-off

[dpdk-dev] [PATCH v2 11/11] net/netvsc: add meson support for FreeBSD

2021-10-08 Thread Srikanth Kaka
add meson support for FreeBSD v2 - moved include statement to after OS detection - updated ./MAINTAINERS file Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- MAINTAINERS| 2 ++ drivers/net/netvsc/freebsd/meson.build | 6

[dpdk-dev] [PATCH v2 02/11] bus/vmbus: scan and get the network device

2021-10-08 Thread Srikanth Kaka
Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. v2 - replaced strncpy with memcpy - replaced malloc.h with stdlib.h Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by:

[dpdk-dev] [PATCH v2 41/41] doc/mlx5: update docs with FreeBSD information

2021-10-08 Thread Srikanth Kaka
Added FreeBSD prerequisites, limitations and features supported. --- doc/guides/nics/mlx5.rst | 30 ++ 1 file changed, 30 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index bae73f42d8..cf6d1e70f6 100644 --- a/doc/guides/nics/mlx5.rst +

[dpdk-dev] [PATCH v2 11/11] net/netvsc: add meson support for FreeBSD

2021-10-08 Thread Srikanth Kaka
From: srikanth-oc add meson support for FreeBSD v2 - moved include statement to after OS detection - updated ./MAINTAINERS file Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- MAINTAINERS| 2 ++ drivers/net/netvsc

[dpdk-dev] [PATCH v2 05/11] bus/vmbus: open subchannels

2021-10-08 Thread Srikanth Kaka
: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 31 +++ drivers/bus/vmbus/linux/vmbus_uio.c | 12 +++ drivers/bus/vmbus/private.h | 1 + drivers/bus/vmbus/rte_bus_vmbus.h | 10

[dpdk-dev] [PATCH v2 40/41] net/mlx5: add meson support for FreeBSD

2021-10-08 Thread Srikanth Kaka
- On FreeBSD, XOPEN_SOURCE=600 is missing 'strlen' prototype. The default XOPEN_SOURCE value (700) is used. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/meson.build | 14 ++ drivers/net/mlx5/m

[dpdk-dev] [PATCH v2 02/11] bus/vmbus: scan and get the network device

2021-10-08 Thread Srikanth Kaka
From: srikanth-oc Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. v2 - replaced strncpy with memcpy - replaced malloc.h with stdlib.h Signed-off-by: Srikanth Kaka Signed-off-by: Vag

[dpdk-dev] [PATCH v2 39/41] common/mlx5: add stub for mlx5_translate_port_name

2021-10-08 Thread Srikanth Kaka
Add stub for mlx5_translate_port_name Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/common/mlx5/freebsd/mlx5_common_os.c

[dpdk-dev] [PATCH v2 38/41] net/mlx5: set promisc and allmulti modes

2021-10-08 Thread Srikanth Kaka
Using INET socket, promisc and allmulti modes are set/unset In FreeBSD, allmulti mode cannot be toggled from userspace thus it can only be unset in DPDK but not at device level. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 32/41] net/mlx5: add multiprocess support

2021-10-08 Thread Srikanth Kaka
These routines are equivalent to their Linux counterparts Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_mp_os.c | 305 ++ 1 file changed, 305 insertions(+) create mode 100644 drivers/net/mlx5

[dpdk-dev] [PATCH v2 29/41] net/mlx5: added stats support

2021-10-08 Thread Srikanth Kaka
Initialize device stats and fetch them using sysctl. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 217 ++ 1 file changed, 217 insertions(+) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 31/41] net/mlx5: add stub to read hw counters

2021-10-08 Thread Srikanth Kaka
retrieving hw counter stats is not supported at the moment. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 37/41] net/mlx5: add routine to extract pdn

2021-10-08 Thread Srikanth Kaka
add routine to extract pdn Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5

[dpdk-dev] [PATCH v2 33/41] net/mlx5: add initialization routines

2021-10-08 Thread Srikanth Kaka
The mlx5_init_once() and mlx5_init_shared_data() are equivalent to their Linux counterparts Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 139 + 1 file changed, 139 insertions(+) diff

[dpdk-dev] [PATCH v2 27/41] net/mlx5: add flow control callbacks

2021-10-08 Thread Srikanth Kaka
add flow control stub callbacks Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers

[dpdk-dev] [PATCH v2 26/41] net/mlx5: add callback to check dev is removed

2021-10-08 Thread Srikanth Kaka
add callback to check dev is removed Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b

[dpdk-dev] [PATCH v2 36/41] net/mlx5: set file descriptor as non-blocking

2021-10-08 Thread Srikanth Kaka
set file descriptor as non-blocking Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5

[dpdk-dev] [PATCH v2 34/41] net/mlx5: add flow workspace APIs

2021-10-08 Thread Srikanth Kaka
add flow workspace APIs Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_flow_os.c | 38 ++ drivers/net/mlx5/freebsd/mlx5_flow_os.h | 484 2 files changed, 522 insertions(+) create mode 100644

[dpdk-dev] [PATCH v2 28/41] net/mlx5: add module callbacks

2021-10-08 Thread Srikanth Kaka
add stubs for nodule callbacks Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers

[dpdk-dev] [PATCH v2 30/41] net/mlx5: add stubs for bonding

2021-10-08 Thread Srikanth Kaka
add stubs for bonding Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5

[dpdk-dev] [PATCH v2 25/41] net/mlx5: handle async device events

2021-10-08 Thread Srikanth Kaka
These function is implemented to support event sharing between multiple ports of single IB device. They are a copy of their Linux counterparts. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 216

[dpdk-dev] [PATCH v2 35/41] net/mlx5: add pci probe and dev spawn support

2021-10-08 Thread Srikanth Kaka
add pci probe and dev spawn support Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 1836 +++- 1 file changed, 1835 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 24/41] net/mlx5: read device clock

2021-10-08 Thread Srikanth Kaka
read device clock Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5

[dpdk-dev] [PATCH v2 23/41] net/mlx5: add link update callback

2021-10-08 Thread Srikanth Kaka
callback to retrieve physical link information Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 175 ++ 1 file changed, 175 insertions(+) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 17/41] net/mlx5: add vlan vmwa stub

2021-10-08 Thread Srikanth Kaka
VLAN workaround for ESXi is not yet supported in FreeBSD, adding placeholders Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_vlan_os.c | 84 + 1 file changed, 84 insertions(+) create mode 100644

[dpdk-dev] [PATCH v2 20/41] net/mlx5: add OS MAC routines

2021-10-08 Thread Srikanth Kaka
The OS MAC routines use INET socket to perform their tasks Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 105 + 1 file changed, 105 insertions(+) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 21/41] net/mlx5: add set MTU routine

2021-10-08 Thread Srikanth Kaka
using IOCTL call MTU is set Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net

[dpdk-dev] [PATCH v2 16/41] common/mlx5: add VLAN vmwa structures

2021-10-08 Thread Srikanth Kaka
Add VLAN vmwa structures to compilation success. It is not yet supported in FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_inet.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH v2 14/41] net/mlx5: add open IB device routines

2021-10-08 Thread Srikanth Kaka
The mlx5_os_open_device(), mlx5_config_doorbell_mapping_env(), mlx5_restore_doorbell_mapping_env(), mlx5_alloc_verbs_buf() and mlx5_free_verbs_buf() are equivalent to Linux APIs of the same name Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers

[dpdk-dev] [PATCH v2 18/41] net/mlx5: add get MAC

2021-10-08 Thread Srikanth Kaka
MAC address is retrieved by making an IOCTL call Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/drivers/net/mlx5/freebsd

[dpdk-dev] [PATCH v2 19/41] net/mlx5: add get MTU

2021-10-08 Thread Srikanth Kaka
MTU is retrieved by making an IOCTL call Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c

[dpdk-dev] [PATCH v2 22/41] net/mlx5: add link state callbacks

2021-10-08 Thread Srikanth Kaka
mlx5_set_link_up() & mlx5_set_link_down() use IOCTL call to set link state Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/dri

[dpdk-dev] [PATCH v2 15/41] common/mlx5: add PF_INET socket interface

2021-10-08 Thread Srikanth Kaka
Similar to NETLINK ROUTE socket in Linux, PF_INET sockets are used to communicate with FreeBSD network stack Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/meson.build | 1 + drivers/common/mlx5/freebsd/mlx5_inet.c | 308

[dpdk-dev] [PATCH v2 13/41] net/mlx5: define MR callbacks

2021-10-08 Thread Srikanth Kaka
Set the reg_mr and dereg_mr call backs Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5

[dpdk-dev] [PATCH v2 10/41] net/mlx5: socket for inter-process communication

2021-10-08 Thread Srikanth Kaka
Initialise the socket to communicate with the secondary process mlx5_os.h and mlx5_socket.c are equivalent to Linux files of the same name Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.h | 22 +++ drivers/net

[dpdk-dev] [PATCH v2 06/41] net/mlx5: implement device attribute getter

2021-10-08 Thread Srikanth Kaka
Adds FreeBSD version of mlx5_os_get_dev_attr. It is same as the Linux definition Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 87 ++ 1 file changed, 87 insertions(+) create mode

[dpdk-dev] [PATCH v2 12/41] net/mlx5: add helpers for MR & HW operations

2021-10-08 Thread Srikanth Kaka
Given protection domain pointer, pointer to addr and length, register the memory region. This patch also defines mlx5_obj_ops. mlx5_verbs.h & mlx5_verbs.c are equivalent to their Linux counterparts. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulas

[dpdk-dev] [PATCH v2 09/41] net/mlx5: get the FreeBSD interface name

2021-10-08 Thread Srikanth Kaka
Using the dev structure, mlx5_get_ifname can get the MLX interface name Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 33 +++ 1 file changed, 33 insertions(+) create mode 100644

[dpdk-dev] [PATCH v2 08/41] common/mlx5: derive PCI addr from device path

2021-10-08 Thread Srikanth Kaka
Using syctl call the PCI addr is derived dev.mlx5_core.0.%location: slot=8 function=0 dbsf=pci0:0:8:0 Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 48 1 file changed, 48 insertions

[dpdk-dev] [PATCH v2 07/41] common/mlx5: retrieve the device index and name

2021-10-08 Thread Srikanth Kaka
The mlx5_core kernel driver creates a sysctl variable dev.mlx5_core.0.ifname: mce0 Using this the device index and interface name are obtained The interface name can be used by PMD to communicate with FreeBSD network stack Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by

[dpdk-dev] [PATCH v2 11/41] common/mlx5: add mr reg/dereg API

2021-10-08 Thread Srikanth Kaka
The mlx5_common_verbs_reg_mr() and mlx5_common_verbs_dereg_mr() APIs are equivalent to their Linux counterparts Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/meson.build | 1 + .../common/mlx5/freebsd

[dpdk-dev] [PATCH v2 02/41] common/mlx5: add memory APIs

2021-10-08 Thread Srikanth Kaka
Add mlx5_os_malloc() & mlx5_os_free() APIs Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.h | 46 1 file changed, 46 insertions(+) create mode 100644 drivers/common/mlx5/fre

[dpdk-dev] [PATCH v2 05/41] common/mlx5: add meson support for FreeBSD

2021-10-08 Thread Srikanth Kaka
- On FreeBSD, XOPEN_SOURCE=600 is missing 'strlen' prototype. The default XOPEN_SOURCE value (700) is used - Shared library linking of libmlx5 and libibverbs is supported - Generate mlx5_autoconf.h similar to Linux Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off

[dpdk-dev] [PATCH v2 03/41] common/mlx5: add FreeBSD getter functions

2021-10-08 Thread Srikanth Kaka
Add helper functions in mlx5_common_os.h from its Linux counterpart Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.h | 244 +++ 1 file changed, 244 insertions(+) diff --git a/drivers/common

[dpdk-dev] [PATCH v2 04/41] common/mlx5: add mlx5_glue_constructor

2021-10-08 Thread Srikanth Kaka
Defined mlx5_glue_constructor in mlx5_common_os.c to support run-time dependency on rdma-core Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 60 1 file changed, 60 insertions

[dpdk-dev] [PATCH v2 00/41] add MLX5 FreeBSD support

2021-10-08 Thread Srikanth Kaka
[ConnectX-6 Lx] MT28908 Family [ConnectX-6] MT2892 Family [ConnectX-6 Dx] v1 : Initial submission v2 : Addressed community comments Srikanth Kaka (41): common/mlx5: add glue files for FreeBSD common/mlx5: add memory APIs common/mlx5: add FreeBSD getter functions common/mlx5: add

[dpdk-dev] [PATCH v2 01/41] common/mlx5: add glue files for FreeBSD

2021-10-08 Thread Srikanth Kaka
- Added mlx5_glue.h. It is same as its Linux counterpart - Added mlx5_glue.c. It is same as its Linux counterpart Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_glue.c | 1505 +++ drivers/common

[dpdk-dev] [PATCH 09/11] net/netvsc: moving hotplug retry to OS dir

2021-09-27 Thread Srikanth Kaka
Moved netvsc_hotplug_retry to respective OS dir as it contains OS dependent code. For Linux, it is copied as is and for FreeBSD it is not supported yet. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 8

[dpdk-dev] [PATCH 08/11] net/netvsc: moving event monitoring support

2021-09-27 Thread Srikanth Kaka
Event monitoring is not yet supported on FreeBSD, hence moving it the OS specific files Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 14 ++ drivers/net/netvsc/hn_ethdev.c | 7 +++ drivers

[dpdk-dev] [PATCH 10/11] bus/vmbus: add meson support for FreeBSD OS

2021-09-27 Thread Srikanth Kaka
add meson support for FreeBSD OS Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index

[dpdk-dev] [PATCH 11/11] net/netvsc: add meson support for FreeBSD

2021-09-27 Thread Srikanth Kaka
add meson support for FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/meson.build | 6 ++ drivers/net/netvsc/linux/meson.build | 6 ++ drivers/net/netvsc/meson.build | 4 3 files changed, 16

[dpdk-dev] [PATCH 07/11] bus/vmbus: map the subchannel resources

2021-09-27 Thread Srikanth Kaka
Using sysctl, the resource values of subchannels are obtained and an mmap request to made to their buffers. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 181 ++ 1 file changed, 66

[dpdk-dev] [PATCH 05/11] bus/vmbus: open subchannels

2021-09-27 Thread Srikanth Kaka
In FreeBSD, unlike Linux there is no sub-channel open callback that could be called by HV_UIO driver, upon their grant by the hypervisor. Thus, the PMD makes an IOCTL to the HV_UIO to open the granted sub-channels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand

  1   2   >