enic: fix link state change
authorJohn Daley <johndale@cisco.com>
Sat, 26 Mar 2016 00:45:17 +0000 (17:45 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 30 Mar 2016 17:39:07 +0000 (19:39 +0200)
commit7fbf050c8cc7c350926cd943afcf1636eb636201
tree5daf2bf482de719994ffd86f03df8794bdacb182
parentd944410a44fc216cb4fe45d14daf8309abf27ec8
enic: fix link state change

When the enic was disabled, link notification was correctly disabled
in the NIC but the software indicator that it was disabled was not
updated (vdev->notify_pa not set to 0). When the link came back up,
enic did not re-enable notification in the NIC.

This affected bonding when a enic slave device link bounced.

The fix is to unconditionally enable notification when the enic is
enabled.

Fixes: 9913fbb91df0 ("enic/base: common code")

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
drivers/net/enic/base/vnic_dev.c