+1
−1
+58
−9
Loading
Under FreeBSD, since we perform a full nic_uio|contigmem reload, we may affect devices which are not directly supported by the setup.sh. To mitigate it, try to lookup kernel environment to see if loader already provides setup for "extra" devices. If so, bail and allow to continue only when new $FORCE_NIC_UIO_REBIND var is passed. When $FORCE_NIC_UIO_REBIND is passed, the list of devices to set via hw.nic_uio.bdfs will include all the "extra" devices to make sure they are reconfigured as well after the driver's reload - this includes the 'reset' mode. Change-Id: I9f1b7784e3cd03c5e7cb4867970e206b6e04bd13 Signed-off-by:Michal Berger <michal.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24175 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com>