+14
−13
Loading
1) Create separate functions for checking the PCI class code vs. checking the PCI device/vendor IDs 2) Instead of a simple grep, check the specific fields to ensure we avoid accidental matching of a class code against a device ID (or vice versa) This will make it a bit cleaner to add some new device IDs (i.e. virtio devices) in some future commits. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I36d4e2dec2f0f15dc0d603fc2512ea03a64dd560 Reviewed-on: https://review.gerrithub.io/374014 Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>