| To: | Jon Mason <jdmason@xxxxxxxxxx> |
|---|---|
| Subject: | Re: r8169: panic on 2.6.11 |
| From: | Francois Romieu <romieu@xxxxxxxxxxxxx> |
| Date: | Sat, 5 Mar 2005 00:58:04 +0100 |
| Cc: | Stephen Hemminger <shemminger@xxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <200503041728.54026.jdmason@xxxxxxxxxx> |
| References: | <20050304132804.270cf05b@xxxxxxxxxxxxxxxxx> <20050304145317.772859da@xxxxxxxxxxxxxxxxx> <20050304230214.GC1148@xxxxxxxxxxxxxxxxxxxxxxxxxx> <200503041728.54026.jdmason@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
Jon Mason <jdmason@xxxxxxxxxx> :
[...]
> > @@ -2210,6 +2211,24 @@ rtl8169_rx_interrupt(struct net_device *
> > pci_action(tp->pci_dev, le64_to_cpu(desc->addr),
> > tp->rx_buf_sz, PCI_DMA_FROMDEVICE);
> >
> > + if (pkt_size >= tp->rx_buf_sz) {
> > + show_size = 1;
> > + pkt_size = tp->rx_buf_sz;
> > + }
>
> Shouldn't the above be dev->mtu (instead of tp->rx_buf_sz), otherwise there
> won't be enough room for ethernet header, CRC, etc.
There is no room left in the buffer. I want it to be translated into the
biggest skb_put() possible. tp->rx_buf_sz already account the headers (see
rtl8169_set_rxbufsize), no ?
At worst it is possible we are a bit pessimistic imho.
--
Ueimor
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: r8169: panic on 2.6.11, Stephen Hemminger |
|---|---|
| Next by Date: | Re: [PATCH] [NET]: Fix deletion of local addresses only varying in prefix length, Thomas Graf |
| Previous by Thread: | Re: r8169: panic on 2.6.11, Stephen Hemminger |
| Next by Thread: | Re: r8169: panic on 2.6.11, Francois Romieu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |