Re: [PATCH] net: sh_eth: fix skb_over_panic happen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hi Eric,

2012/02/07 16:55, Eric Dumazet wrote:
> Le mardi 07 février 2012 à 15:54 +0900, Shimoda, Yoshihiro a écrit :
[ snip ]
>> diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
>> index 813d41c..9e899b0 100644
>> --- a/drivers/net/ethernet/renesas/sh_eth.c
>> +++ b/drivers/net/ethernet/renesas/sh_eth.c
>> @@ -817,7 +817,7 @@ static int sh_eth_dev_init(struct net_device *ndev)
>>  		sh_eth_write(ndev, 0, TRIMD);
>>
>>  	/* Recv frame limit set register */
>> -	sh_eth_write(ndev, RFLR_VALUE, RFLR);
>> +	sh_eth_write(ndev, ndev->mtu + ETH_HLEN + ETH_FCS_LEN, RFLR);
>>
> 
> No VLAN_HDR ?
> 

Thank you for your point.
I forgot care of VLAN. I will add "+ VLAN_HLEN" and submit a patch.

Best regards,
Yoshihiro Shimoda
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Kernel Discussion]     [Ethernet Bridging]     [Linux Wireless Networking]     [Linux Bluetooth Networking]     [Linux Networking Users]     [VLAN]     [Git]     [IETF Annouce]     [Linux Assembly]     [Security]     [Bugtraq]     [Photo]     [Singles Social Networking]     [Yosemite Information]     [MIPS Linux]     [ARM Linux Kernel]     [ARM Linux]     [Linux Virtualization]     [Linux Security]     [Linux IDE]     [Linux RAID]     [Linux SCSI]     [Free Dating]

Add to Google Powered by Linux