]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: call vlan_mode only if hw supports vlans
authorJiri Pirko <jpirko@redhat.com>
Thu, 18 Aug 2011 06:50:37 +0000 (23:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Aug 2011 06:50:37 +0000 (23:50 -0700)
commitc1512ebe9ca26b39fc29faaf12f12a7ac0e15186
treec504e38c405b70d4eb86e2f6de8239e62d86d731
parent9597b1338c8a53761b4c9f6b3150e157680e38fd
forcedeth: call vlan_mode only if hw supports vlans

If hw does not support vlans, dont call nv_vlan_mode because it has no point.
I believe that this should fix issues on older non-vlan supportive
chips (like Ingo has).

Reported-ty: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c