DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation
@ 2021-10-08  0:22 William Tu
  2021-10-08 12:39 ` William Tu
  0 siblings, 1 reply; 2+ messages in thread
From: William Tu @ 2021-10-08  0:22 UTC (permalink / raw)
  To: dev; +Cc: navasile, pallavi.kadam, dmitry.kozliuk

When BAR array is filled like this
    * Bar[4] = c844000c <if this one is not the CM_RESOURCE_MEMORY_BAR>
    * Bar[5] = null
ex:
while ((descriptor->Type != CmResourceTypeMemory) ||
                 !(descriptor->Flags & CM_RESOURCE_MEMORY_BAR));
returns true, the loop continue and the decriptor will be NULL,
but it's not an error. So I fix it by setting the status to STATUS_SUCCESS.

Signed-off-by: William Tu <u9012063@gmail.com>
---
Found the issue when adding the e1000 PMD support.
http://inbox.dpdk.org/dev/20211007202451.90271-1-u9012063@gmail.com/T/#u
---
 windows/netuio/netuio_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/windows/netuio/netuio_dev.c b/windows/netuio/netuio_dev.c
index b2deb10..0dd0055 100644
--- a/windows/netuio/netuio_dev.c
+++ b/windows/netuio/netuio_dev.c
@@ -207,7 +207,7 @@ netuio_map_hw_resources(WDFDEVICE Device, WDFCMRESLIST Resources, WDFCMRESLIST R
             next_descriptor++;
 
             if (descriptor == NULL) {
-                status = STATUS_DEVICE_CONFIGURATION_ERROR;
+                status = STATUS_SUCCESS;
                 goto end;
             }
         } while ((descriptor->Type != CmResourceTypeMemory) ||
-- 
2.31.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation
  2021-10-08  0:22 [dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation William Tu
@ 2021-10-08 12:39 ` William Tu
  0 siblings, 0 replies; 2+ messages in thread
From: William Tu @ 2021-10-08 12:39 UTC (permalink / raw)
  To: dpdk-dev; +Cc: navasile, Pallavi Kadam, Dmitry Kozliuk

On Thu, Oct 7, 2021 at 5:23 PM William Tu <u9012063@gmail.com> wrote:
>
> When BAR array is filled like this
>     * Bar[4] = c844000c <if this one is not the CM_RESOURCE_MEMORY_BAR>
>     * Bar[5] = null
> ex:
> while ((descriptor->Type != CmResourceTypeMemory) ||
>                  !(descriptor->Flags & CM_RESOURCE_MEMORY_BAR));
> returns true, the loop continue and the decriptor will be NULL,
> but it's not an error. So I fix it by setting the status to STATUS_SUCCESS.
>
> Signed-off-by: William Tu <u9012063@gmail.com>
> ---
> Found the issue when adding the e1000 PMD support.
> http://inbox.dpdk.org/dev/20211007202451.90271-1-u9012063@gmail.com/T/#u
> ---
Sorry, there are some format/spelling errors in this patch.
I will fix and resend v2.
William

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-08 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  0:22 [dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation William Tu
2021-10-08 12:39 ` William Tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).