be2net: Fix to reset transparent vlan tagging
authorSomnath Kotur <somnath.kotur@emulex.com>
Mon, 3 Mar 2014 08:54:20 +0000 (14:24 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:48:11 +0000 (15:48 -0500)
commitc502224efb2eaec47f16da39235079598a0f3ed2
tree5e7301336c923b3ccfba6a9a70b52dd953df91c3
parente842b068bf9a9eb7b38e0e1875357440a1fd2169
be2net: Fix to reset transparent vlan tagging

For disabling transparent tagging issue SET_HSW_CONFIG with pvid_valid=1
and pvid=0xFFFF and not with the default pvid as this case would fail in Lancer.
Hence removing the get_hsw_config call from be_vf_setup() as it's
only use of getting default pvid is no longer needed.

Also do proper housekeeping only if the FW command succeeds.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c