bus/vdev: fix error log on secondary device scan
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 3 Sep 2018 08:49:29 +0000 (16:49 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 Sep 2018 09:33:00 +0000 (11:33 +0200)
commit23f1c424599008a990bfcdf283a0c935bf5b3cdf
tree2a114a89d28bd55e656e9cf5eefbc1c14e9a8d84
parentdde37a8fb86dd66b81378255f2c9dfe0c9b2cec9
bus/vdev: fix error log on secondary device scan

When a secondary process handles VDEV_SCAN_ONE mp action, it is possible
the device is already be inserted. This happens when we have multiple
secondary processes which cause multiple broadcasts from primary during
bus->scan. So we don't need to log any error for -EEXIST.

Bugzilla ID: 84
Fixes: cdb068f031c6 ("bus/vdev: scan by multi-process channel")
Cc: stable@dpdk.org
Reported-by: Gage Eads <gage.eads@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Gage Eads <gage.eads@intel.com>
drivers/bus/vdev/vdev.c