DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1239] VMXNET 3 returned the wrong error code in initializing
@ 2023-05-28 10:23 bugzilla
  2023-06-12 20:55 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2023-05-28 10:23 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1239

            Bug ID: 1239
           Summary: VMXNET 3 returned the wrong error code in initializing
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Low
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: corezeng@gmail.com
  Target Milestone: ---

To call rte_eth_dev_start() to start a device, this function calls the function
pointer (dev_start) that was registered by the specific device.
rte_eth_dev_start() judges the integer returned from dev_start to continue or
return an error. 

In the driver of VMXNET 3 the vmxnet3_dev_start is the function that needs to
be registered as dev_start, and it called vmxnet3_dev_rxtx_init(). 

In vmxnet3_dev_rxtx_init(), a wrong error code may be thrown after it invokes
vmxnet3_post_rx_bufs() because it negates the error code before returning it*.
It causes rte_eth_dev_start() to give a positive number to the invoker, but it
should be a negative number, as described in the comments.

*: At vmxnet3_rxtx.c:1318

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3155 bytes --]

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

end of thread, other threads:[~2023-06-12 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28 10:23 [Bug 1239] VMXNET 3 returned the wrong error code in initializing bugzilla
2023-06-12 20:55 ` bugzilla

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).