[3/4] usertools: add octeontx2 REE device binding
diff mbox series

Message ID 20200901122436.17748-4-guyk@marvell.com
State Superseded
Delegated to: Thomas Monjalon
Headers show
Series
  • Add Marvell OCTEON TX2 regex driver
Related show

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Guy Kaneti Sept. 1, 2020, 12:24 p.m. UTC
From: Guy Kaneti <guyk@marvell.com>

Update the devbind script with new section of regex devices, also
added OCTEONTX2 REE device ID to regex device list

Signed-off-by: Guy Kaneti <guyk@marvell.com>
---
 usertools/dpdk-devbind.py | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Liron Himi Oct. 11, 2020, 7:36 a.m. UTC | #1
Reviewed-by: Liron Himi <lironh@marvell.com>

-----Original Message-----
From: dev <dev-bounces@dpdk.org> On Behalf Of guyk@marvell.com
Sent: Tuesday, 1 September 2020 15:25
To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>; thomas@monjalon.net; mdr@ashroe.eu; nhorman@tuxdriver.com; bruce.richardson@intel.com; anatoly.burakov@intel.com; john.mcnamara@intel.com; marko.kovacevic@intel.com
Cc: dev@dpdk.org; Smadar Fuks <smadarf@marvell.com>; Dovrat Zifroni <dovrat@marvell.com>; Guy Kaneti <guyk@marvell.com>; orika@mellanox.com
Subject: [dpdk-dev] [PATCH 3/4] usertools: add octeontx2 REE device binding

From: Guy Kaneti <guyk@marvell.com>

Update the devbind script with new section of regex devices, also added OCTEONTX2 REE device ID to regex device list

Signed-off-by: Guy Kaneti <guyk@marvell.com>
---
 usertools/dpdk-devbind.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 86b6b53c4..51ee990db 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -44,6 +44,8 @@
               'SVendor': None, 'SDevice': None}  octeontx2_dma = {'Class': '08', 'Vendor': '177d', 'Device': 'a081',
               'SVendor': None, 'SDevice': None}
+octeontx2_ree = {'Class': '08', 'Vendor': '177d', 'Device': 'a0f4',
+              'SVendor': None, 'SDevice': None}
 
 intel_ioat_bdw = {'Class': '08', 'Vendor': '8086', 'Device': '6f20,6f21,6f22,6f23,6f24,6f25,6f26,6f27,6f2e,6f2f',
               'SVendor': None, 'SDevice': None} @@ -61,6 +63,7 @@  mempool_devices = [cavium_fpa, octeontx2_npa]  compress_devices = [cavium_zip]  misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_ntb_skx, octeontx2_dma]
+regex_devices = [octeontx2_ree]
 
 # global dict ethernet devices present. Dictionary indexed by PCI address.
 # Each device within this is itself a dictionary of device properties @@ -648,6 +651,9 @@ def show_status():
     if status_dev == "misc" or status_dev == "all":
         show_device_status(misc_devices, "Misc (rawdev)")
 
+    if status_dev == "regex" or status_dev == "all":
+        show_device_status(regex_devices, "Regex")
+
 def parse_args():
     '''Parses the command-line arguments given by the user and takes the
     appropriate action for each'''
@@ -723,6 +729,7 @@ def do_arg_actions():
             get_device_details(mempool_devices)
             get_device_details(compress_devices)
             get_device_details(misc_devices)
+            get_device_details(regex_devices)
         show_status()
 
 
@@ -744,6 +751,7 @@ def main():
     get_device_details(mempool_devices)
     get_device_details(compress_devices)
     get_device_details(misc_devices)
+    get_device_details(regex_devices)
     do_arg_actions()
 
 if __name__ == "__main__":
--
2.28.0

Patch
diff mbox series

diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index 86b6b53c4..51ee990db 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -44,6 +44,8 @@ 
               'SVendor': None, 'SDevice': None}
 octeontx2_dma = {'Class': '08', 'Vendor': '177d', 'Device': 'a081',
               'SVendor': None, 'SDevice': None}
+octeontx2_ree = {'Class': '08', 'Vendor': '177d', 'Device': 'a0f4',
+              'SVendor': None, 'SDevice': None}
 
 intel_ioat_bdw = {'Class': '08', 'Vendor': '8086', 'Device': '6f20,6f21,6f22,6f23,6f24,6f25,6f26,6f27,6f2e,6f2f',
               'SVendor': None, 'SDevice': None}
@@ -61,6 +63,7 @@ 
 mempool_devices = [cavium_fpa, octeontx2_npa]
 compress_devices = [cavium_zip]
 misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_ntb_skx, octeontx2_dma]
+regex_devices = [octeontx2_ree]
 
 # global dict ethernet devices present. Dictionary indexed by PCI address.
 # Each device within this is itself a dictionary of device properties
@@ -648,6 +651,9 @@  def show_status():
     if status_dev == "misc" or status_dev == "all":
         show_device_status(misc_devices, "Misc (rawdev)")
 
+    if status_dev == "regex" or status_dev == "all":
+        show_device_status(regex_devices, "Regex")
+
 def parse_args():
     '''Parses the command-line arguments given by the user and takes the
     appropriate action for each'''
@@ -723,6 +729,7 @@  def do_arg_actions():
             get_device_details(mempool_devices)
             get_device_details(compress_devices)
             get_device_details(misc_devices)
+            get_device_details(regex_devices)
         show_status()
 
 
@@ -744,6 +751,7 @@  def main():
     get_device_details(mempool_devices)
     get_device_details(compress_devices)
     get_device_details(misc_devices)
+    get_device_details(regex_devices)
     do_arg_actions()
 
 if __name__ == "__main__":