be2net: Fix to avoid hardware workaround when not needed
authorSarveshwar Bandi <sarveshwar.bandi@emulex.com>
Tue, 16 Jul 2013 07:14:02 +0000 (12:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:30:04 +0000 (16:30 -0700)
commite0ca176c17745ac3e0c5a9969aba3c983e6c69c5
tree60c3f2265ad7293ed146e205370e30615c494205
parentb3923f8211bc60ff3b4567fafe0814beb6bc5a50
be2net: Fix to avoid hardware workaround when not needed

[ Upstream commit 52fe29e4bb614367c108b717c6d7fe5953eb7af3 ]

Hardware workaround requesting hardware to skip vlan insertion is necessary
only when umc or qnq is enabled. Enabling this workaround in other scenarios
could cause controller to stall.

Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/emulex/benet/be_main.c