Changeset 26890


Ignore:
Timestamp:
2011-05-15T01:10:06+02:00 (7 years ago)
Author:
matteo
Message:

use correct macros and frame size in ag71xx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r26844 r26890  
    2626#include <linux/ethtool.h> 
    2727#include <linux/etherdevice.h> 
     28#include <linux/if_vlan.h> 
    2829#include <linux/phy.h> 
    2930#include <linux/skbuff.h> 
     
    3637#include <asm/mach-ar71xx/platform.h> 
    3738 
    38 #define ETH_FCS_LEN     4 
    39  
    4039#define AG71XX_DRV_NAME         "ag71xx" 
    4140#define AG71XX_DRV_VERSION      "0.5.35" 
     
    5554#define AG71XX_RX_PKT_RESERVE   64 
    5655#define AG71XX_RX_PKT_SIZE      \ 
    57         (AG71XX_RX_PKT_RESERVE + ETH_HLEN + ETH_FRAME_LEN + ETH_FCS_LEN) 
     56        (AG71XX_RX_PKT_RESERVE + ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN) 
    5857 
    5958#define AG71XX_TX_RING_SIZE     64 
Note: See TracChangeset for help on using the changeset viewer.