[dts] [PATCH v1]test_plans/iavf:modify the sed command according to dpdk code
xuhailin
hailinx.xu at intel.com
Mon Mar 23 04:17:58 CET 2020
modify the sed command according to dpdk code.
Signed-off-by: xuhailin <hailinx.xu at intel.com>
---
test_plans/iavf_test_plan.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test_plans/iavf_test_plan.rst b/test_plans/iavf_test_plan.rst
index dcb6e8f..b760a63 100644
--- a/test_plans/iavf_test_plan.rst
+++ b/test_plans/iavf_test_plan.rst
@@ -45,7 +45,7 @@ Prerequisites
=======================
1. Modify and build DPDK source code to enable IAVF function for I40E NIC::
- sed -i -e '/IAVF_DEV_ID_ADAPTIVE_VF/s/0x1889/0x154c/g' drivers/net/iavf/base/iavf_devids.h
+ sed -i '/{ RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_ADAPTIVE_VF) },/a { RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_VF) },' drivers/net/iavf/iavf_ethdev.c
sed -i -e '/I40E_DEV_ID_VF/s/0x154C/0x164C/g' drivers/net/i40e/base/i40e_devids.h
make install RTE_SDK=`pwd` T=x86_64-native-linuxapp-gcc
@@ -79,7 +79,7 @@ Prerequisites
5. Modify and build DPDK source code to enable IAVF function for I40E NIC in VM::
- sed -i -e '/IAVF_DEV_ID_ADAPTIVE_VF/s/0x1889/0x154c/g' drivers/net/iavf/base/iavf_devids.h
+ sed -i '/{ RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_ADAPTIVE_VF) },/a { RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_VF) },' drivers/net/iavf/iavf_ethdev.c
sed -i -e '/I40E_DEV_ID_VF/s/0x154C/0x164C/g' drivers/net/i40e/base/i40e_devids.h
make install RTE_SDK=`pwd` T=x86_64-native-linuxapp-gcc
--
2.17.2
More information about the dts
mailing list