Re: [PATCH v4 1/4] usertools/dpdk-devbind: add bind/unbind for platform device

2025-04-07 Thread Stephen Hemminger
On Wed, 2 Apr 2025 06:58:32 + liwencheng wrote: > > +def unbind_platform_one(dev_name): > +filename = "/sys/bus/platform/devices/%s/driver" % dev_name > + > +if exists(filename): > +try: > +f = open(os.path.join(filename, "unbind"), "w") > +except OSErro

[PATCH v4 1/4] usertools/dpdk-devbind: add bind/unbind for platform device

2025-04-02 Thread liwencheng
This patch mainly adds functions for bind and unbind platform devices, such as bind_platform_one and unbind_platform_one. Signed-off-by: liwencheng --- usertools/dpdk-devbind.py | 131 -- 1 file changed, 114 insertions(+), 17 deletions(-) diff --git a