gianfar: prevent buggy hw rx vlan tagging
authorJiri Pirko <jpirko@redhat.com>
Wed, 10 Aug 2011 01:19:48 +0000 (01:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Aug 2011 01:00:33 +0000 (18:00 -0700)
commit32f7fd44ce3aae9ad204fb167d793c335608568d
treea21d8563645cd3c07546f3b36db0a897342a5c36
parent6a27cdeddf48858089e3672f844615cbf0877ebf
gianfar: prevent buggy hw rx vlan tagging

On some buggy chips, "vlan tag present" flag is set which causes packet
loss. Fix this by checking if rx vlan accel is enabled in features.

Reported-by: Michael Guntsche <mguntsche@gmail.com>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c