enic: Bug Fix: Dont reset ENIC_SET_APPLIED flag on port profile disassociate
commit4dce2396b329ef6a14b40c5416d6f76005097b0d
authorRoopa Prabhu <roprabhu@cisco.com>
Thu, 20 Jan 2011 14:35:54 +0000 (20 14:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jan 2011 00:59:34 +0000 (20 16:59 -0800)
tree0469682c0674074b1b1eb109e22c203d4039e9a6
parentf2eda47df46f9953fc8a4fec820f34d539a8efbb
enic: Bug Fix: Dont reset ENIC_SET_APPLIED flag on port profile disassociate

enic_get_vf_port returns port profile operation status only if ENIC_SET_APPLIED
flag is set. A recent rework of enic_set_port_profile added code to reset this
flag on disassociate. As a result of which a client calling enic_get_vf_port
to get the status of port profile disassociate will always get a return value
of ENODATA. This patch renames ENIC_SET_APPLIED to more appropriate
ENIC_PORT_REQUEST_APPLIED and reverts back the recent change so that the
flag is set both at associate and disassociate of a port profile.

Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c