diff options
author | Dai Haruki <dai.haruki@freescale.com> | 2008-12-16 18:30:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 18:30:48 -0500 |
commit | 77ecaf2d5a8bfd548eed3f05c1c2e6573d5de4ba (patch) | |
tree | cb84f04691e26ebf72df6ca8185313194c4cdf90 /drivers/net/gianfar.h | |
parent | 12dea57be552a291e93827baeffbb91e33f587a6 (diff) |
gianfar: Fix VLAN HW feature related frame/buffer size calculation.
Optimize the VLAN checking logic as well.
Signed-off-by: Dai Haruki <dai.haruki@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 449f508a5640..1bdb50c7936e 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -206,8 +206,10 @@ extern const char gfar_driver_version[]; | |||
206 | #define RCTRL_PRSDEP_INIT 0x000000c0 | 206 | #define RCTRL_PRSDEP_INIT 0x000000c0 |
207 | #define RCTRL_PROM 0x00000008 | 207 | #define RCTRL_PROM 0x00000008 |
208 | #define RCTRL_EMEN 0x00000002 | 208 | #define RCTRL_EMEN 0x00000002 |
209 | #define RCTRL_CHECKSUMMING (RCTRL_IPCSEN \ | 209 | #define RCTRL_REQ_PARSER (RCTRL_VLEX | RCTRL_IPCSEN | \ |
210 | | RCTRL_TUCSEN | RCTRL_PRSDEP_INIT) | 210 | RCTRL_TUCSEN) |
211 | #define RCTRL_CHECKSUMMING (RCTRL_IPCSEN | RCTRL_TUCSEN | \ | ||
212 | RCTRL_PRSDEP_INIT) | ||
211 | #define RCTRL_EXTHASH (RCTRL_GHTX) | 213 | #define RCTRL_EXTHASH (RCTRL_GHTX) |
212 | #define RCTRL_VLAN (RCTRL_PRSDEP_INIT) | 214 | #define RCTRL_VLAN (RCTRL_PRSDEP_INIT) |
213 | #define RCTRL_PADDING(x) ((x << 16) & RCTRL_PAL_MASK) | 215 | #define RCTRL_PADDING(x) ((x << 16) & RCTRL_PAL_MASK) |
@@ -754,8 +756,7 @@ struct gfar_private { | |||
754 | phy_interface_t interface; | 756 | phy_interface_t interface; |
755 | char phy_bus_id[BUS_ID_SIZE]; | 757 | char phy_bus_id[BUS_ID_SIZE]; |
756 | u32 device_flags; | 758 | u32 device_flags; |
757 | unsigned char vlan_enable:1, | 759 | unsigned char rx_csum_enable:1, |
758 | rx_csum_enable:1, | ||
759 | extended_hash:1, | 760 | extended_hash:1, |
760 | bd_stash_en:1, | 761 | bd_stash_en:1, |
761 | wol_en:1; /* Wake-on-LAN enabled */ | 762 | wol_en:1; /* Wake-on-LAN enabled */ |