]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Loaded Firmware Version Validation
authorAriel Elior <ariele@broadcom.com>
Thu, 26 Jan 2012 06:01:49 +0000 (06:01 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:20 +0000 (22:41 +0800)
commitc036bf88adc00219bbca342ce46dfb6f5b1745f9
treedcdf3624353ffa69c2d970c47dc18c94d2d87424
parent2eaf3025b15983e3e625bc6bb5ba84982e404e43
bnx2x: Loaded Firmware Version Validation

In a virtualized environment it is possible for a loading driver to discover
that Firmware is already loaded to the device, and that this FW does not match
its own. This can happen for example if different Physical Functions are
Assigned to different VMs in which different driver versions are loaded. The
code in this patch ensures that only drivers with matching FW are loaded over
the device, and that in the case described above where the Firmware version
doesn't match the driver load is aborted.

(cherry picked from commit d1e2d9660e6bca2f06606b4bc65ea669bf669b0a)
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.c