From 2dcc4bd8a329b725c9a840856ee8c575e1439c47 Mon Sep 17 00:00:00 2001 From: Douglas Henrique Koerich Date: Wed, 18 Aug 2021 12:27:14 -0400 Subject: [PATCH] Customize fpga_5gnr config for 1 VF Instead of using the distribution of UL/DL queues between 2 VFs like in the original fpga_5gnr/fpga_5gnr_config_vf.cfg file, all of them are set for usage by the first VF, only. Task: 43044 Story: 2009036 Signed-off-by: Douglas Henrique Koerich Change-Id: Ie7524eea807e7a49a304475e3451f717954c3ea5 --- base/pf-bb-config/centos/pf-bb-config.spec | 2 ++ .../Customize-fpga_5gnr-config-for-1-VF.patch | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 base/pf-bb-config/files/Customize-fpga_5gnr-config-for-1-VF.patch diff --git a/base/pf-bb-config/centos/pf-bb-config.spec b/base/pf-bb-config/centos/pf-bb-config.spec index 4d9e4c4f3..1baab3d57 100644 --- a/base/pf-bb-config/centos/pf-bb-config.spec +++ b/base/pf-bb-config/centos/pf-bb-config.spec @@ -11,6 +11,7 @@ URL: https://github.com/intel/pf-bb-config/tree/v21.6 Source0: %{name}-%{git_sha}.tar.gz Patch0: Reject-device-configuration-if-not-enabled.patch Patch1: Fix-check-return-of-configure_device.patch +Patch2: Customize-fpga_5gnr-config-for-1-VF.patch BuildRequires: gcc BuildRequires: inih @@ -25,6 +26,7 @@ space and sets the various parameters through memory-mapped IO read/writes. %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build make diff --git a/base/pf-bb-config/files/Customize-fpga_5gnr-config-for-1-VF.patch b/base/pf-bb-config/files/Customize-fpga_5gnr-config-for-1-VF.patch new file mode 100644 index 000000000..a0fdca8b1 --- /dev/null +++ b/base/pf-bb-config/files/Customize-fpga_5gnr-config-for-1-VF.patch @@ -0,0 +1,31 @@ +From a362668ac7ca891974c3b5b50c983471e1dfab02 Mon Sep 17 00:00:00 2001 +From: Douglas Henrique Koerich +Date: Wed, 18 Aug 2021 12:19:16 -0400 +Subject: [PATCH] Customize fpga_5gnr config for 1 VF + +Change distribution of UL/DL queues to be used by one VF only. + +Signed-off-by: Douglas Henrique Koerich +--- + fpga_5gnr/fpga_5gnr_config_vf.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/fpga_5gnr/fpga_5gnr_config_vf.cfg b/fpga_5gnr/fpga_5gnr_config_vf.cfg +index 0a82f52..81aa3bb 100644 +--- a/fpga_5gnr/fpga_5gnr_config_vf.cfg ++++ b/fpga_5gnr/fpga_5gnr_config_vf.cfg +@@ -7,9 +7,9 @@ pf_mode_en = 0 + [UL] + bandwidth = 3 + load_balance = 128 +-vfqmap = 16,16,0,0,0,0,0,0 ++vfqmap = 32,0,0,0,0,0,0,0 + + [DL] + bandwidth = 3 + load_balance = 128 +-vfqmap = 16,16,0,0,0,0,0,0 ++vfqmap = 32,0,0,0,0,0,0,0 +-- +2.29.2 +