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
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
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
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/
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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
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
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
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
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
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
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:
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
+
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
: 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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
[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
- 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
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
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
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
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
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
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 - 100 of 125 matches
Mail list logo