aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/vnic_devcmd.h
diff options
context:
space:
mode:
authorVasanthy Kolluri <vkolluri@cisco.com>2010-06-24 06:50:00 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-25 23:46:01 -0400
commit99ef563901a18d44a6c2eadd2b958e2e83aeca51 (patch)
tree29bbf0fe2457effbaa62281eca6aff2191cc9f75 /drivers/net/enic/vnic_devcmd.h
parentf8cac14acff870203ea7f61f1a92c5486d1774fa (diff)
enic: Use a lighter reset operation for enic devices
The port profile information for a dynamic enic device is set by the upper layers, that are oblivious to the device reset operation. We do not want a reset operation erase the network state of a dynamic enic device as there is no way to set up the port profile information again. Hence a lighter reset operation called hang reset is used. Hang reset, unlike soft reset does not reset the network state and resets the host side state only. Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_devcmd.h')
-rw-r--r--drivers/net/enic/vnic_devcmd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/enic/vnic_devcmd.h b/drivers/net/enic/vnic_devcmd.h
index c5ff4ff2ed26..1c4fb35671fa 100644
--- a/drivers/net/enic/vnic_devcmd.h
+++ b/drivers/net/enic/vnic_devcmd.h
@@ -212,6 +212,13 @@ enum vnic_devcmd_cmd {
212 */ 212 */
213 CMD_IAR = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 38), 213 CMD_IAR = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 38),
214 214
215 /* initiate hangreset, like softreset after hang detected */
216 CMD_HANG_RESET = _CMDC(_CMD_DIR_NONE, _CMD_VTYPE_ALL, 39),
217
218 /* hangreset status:
219 * out: a0=0 reset complete, a0=1 reset in progress */
220 CMD_HANG_RESET_STATUS = _CMDC(_CMD_DIR_READ, _CMD_VTYPE_ALL, 40),
221
215 /* 222 /*
216 * Set hw ingress packet vlan rewrite mode: 223 * Set hw ingress packet vlan rewrite mode:
217 * in: (u32)a0=new vlan rewrite mode 224 * in: (u32)a0=new vlan rewrite mode