diff options
author | Felix Manlunas | 2017-03-23 21:26:28 +0100 |
---|---|---|
committer | David S. Miller | 2017-03-24 21:20:43 +0100 |
commit | 7cc61db9c7e6c985798d5419207fbd8cdb505c7b (patch) | |
tree | 1ddb3005108d7bc900e03504af3ea2d893121bb6 /mm/page_counter.c | |
parent | net: Add sysctl to toggle early demux for tcp and udp (diff) | |
download | kernel-qcow2-linux-7cc61db9c7e6c985798d5419207fbd8cdb505c7b.tar.gz kernel-qcow2-linux-7cc61db9c7e6c985798d5419207fbd8cdb505c7b.tar.xz kernel-qcow2-linux-7cc61db9c7e6c985798d5419207fbd8cdb505c7b.zip |
liquidio: do not reset Octeon if NIC firmware was preloaded
The PF driver is incorrectly resetting Octeon when the module parameter
"fw_type=none" is there. "fw_type=none" means the PF should not load any
firmware to the NIC because Octeon is already running preloaded firmware.
Fix it by putting an if (fw_type != none) around the reset code.
Because the Octeon reset is now conditionally gone, when unloading the
driver, conditionally send the RESET_PF command to the firmware who will
then free up PF-related data structures.
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/page_counter.c')
0 files changed, 0 insertions, 0 deletions