]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix vlans_added counter
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 11 Mar 2014 13:23:08 +0000 (18:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 20:19:48 +0000 (16:19 -0400)
commit1c1653765c9cd3df9fbb56d98be2ca54038e8f5a
tree555bea97f65d886704a22730ee7b3cbf366a5389
parent29f49aa4b983e2741b05025793a90fec26362f7c
be2net: Fix vlans_added counter

When a VLAN is added by user, adapter->vlans_added is incremented.
But if the VLAN is already programmed in HW, driver ends up
incrementing the counter wrongly.

Increment the counter only if VLAN is not already programmed in the HW.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c