cpmac: fix the receiving of 802.1q frames
authorFlorian Fainelli <florian@openwrt.org>
Sun, 7 Mar 2010 00:55:26 +0000 (00:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Mar 2010 23:25:52 +0000 (15:25 -0800)
commit30765d0502905a9248e5de72fc7ac83c23422861
treea026bb9bdfa387be39f61d9c498d0f59eea4e144
parent8d15d3864a733476931f7e0b3d82824cddc766c2
cpmac: fix the receiving of 802.1q frames

Despite what the comment above CPMAC_SKB_SIZE says, the hardware also
needs to account for the FCS length in a received frame. This patch fix
the receiving of 802.1q frames which have 4 more bytes. While at it
unhardcode the definition and use the one from if_vlan.h.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cpmac.c