net: Add ethernet FCS length macro in net.h
authorBin Meng <bmeng.cn@gmail.com>
Fri, 20 Mar 2015 09:12:18 +0000 (17:12 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 03:22:37 +0000 (21:22 -0600)
commita7c3d5e2a9f4d0feb1e21733434e6d29f5ac566b
treebd9b383da9a97783b1c60fcc99c9851c33ccdb50
parente4ad6031a79fb3182613f95423ebcd771309679d
net: Add ethernet FCS length macro in net.h

Some ethernet drivers use their own version of ethernet FCS length
macro which is really common. We define ETH_FCS_LEN in net.h and
replace those custom versions in various places.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/e1000.h
drivers/usb/gadget/ether.c
drivers/usb/gadget/rndis.c
include/net.h
include/usb_ether.h