]> git.proxmox.com Git - ovs.git/commit - lib/dpdk.c
dpdk: allow init to fail
authorAaron Conole <aconole@redhat.com>
Thu, 3 May 2018 19:08:00 +0000 (15:08 -0400)
committerIan Stokes <ian.stokes@intel.com>
Fri, 25 May 2018 08:09:50 +0000 (09:09 +0100)
commitd7e2509e2f68f124bded3a30afbbddbb86be087f
tree16b0c957838f8bc883108402353c066fe324a1fb
parent47e1b3b625bbfe3b61bf578aed243b56afbf746a
dpdk: allow init to fail

It's possible for dpdk initialization to fail either due to an internal
error or an invalid configuration.  When that happens, it's rather
impolite to immediately abort without any details.

With this change, a failed dpdk initialization attempt will continue to
trigger a SIGABRT.  However, the failure details will be logged, and a
user or administrator may have more information to correct the issue.
A restart of OvS would still be required to re-attempt initialization.

The refactor to propagate the init error will be used in an upcoming
commit.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/dpdk.c