ia64/xen-unstable

changeset 9291:a5ee1cb525bb

Make MTU rx check in netfront more permissive to allow for 8021q vlan tagging.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 15 12:52:33 2006 +0100 (2006-03-15)
parents c097485037f7
children 9af36c14ae83
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Wed Mar 15 12:41:58 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Wed Mar 15 12:52:33 2006 +0100
     1.3 @@ -845,11 +845,11 @@ static int netif_poll(struct net_device 
     1.4  	}
     1.5  
     1.6  	while ((skb = __skb_dequeue(&rxq)) != NULL) {
     1.7 -		if (skb->len > (dev->mtu + ETH_HLEN)) {
     1.8 +		if (skb->len > (dev->mtu + ETH_HLEN + 4)) {
     1.9  			if (net_ratelimit())
    1.10  				printk(KERN_INFO "Received packet too big for "
    1.11  				       "MTU (%d > %d)\n",
    1.12 -				       skb->len - ETH_HLEN, dev->mtu);
    1.13 +				       skb->len - ETH_HLEN - 4, dev->mtu);
    1.14  			skb->len  = 0;
    1.15  			skb->tail = skb->data;
    1.16  			init_skb_shinfo(skb);