be2net: Fix be_vlan_add/rem_vid() routines
authorSomnath Kotur <somnath.kotur@emulex.com>
Tue, 21 Jan 2014 10:20:55 +0000 (15:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2014 07:12:59 +0000 (23:12 -0800)
commita6b74e01f072fbfec57090c3230915ef55a9068b
tree3acd8676541645da194b2dedf1523a5412e4514d
parent076d1329583ed6db92ebf05bc00335339fd369b1
be2net: Fix be_vlan_add/rem_vid() routines

The current logic to put interface into VLAN Promiscous mode is not correct.
We should increment "adapter->vlans_added" before calling be_vid_config().
Also removed some unwanted log messages.

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_main.c