netdev
[Top] [All Lists]

Re: [PATCH] forcedeth: jumbo frame support

To: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx>
Subject: Re: [PATCH] forcedeth: jumbo frame support
From: Tim Mattox <tmattox@xxxxxxxxx>
Date: Sat, 16 Jul 2005 17:09:09 -0400
Cc: Jeff Garzik <jgarzik@xxxxxxxxx>, Netdev <netdev@xxxxxxxxxxx>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JAyTvwnwwirQAm+tGc/eRk38a8f9HSxHFe5bYsGscptSO1GpEosc9gzXz5TUNizmERhLrngFpDlVSBadycDMK2IQMB9Qb8Xw5Qt29ZHBPn8BucTqTGZx/SJ5VzKbdn6uaMP5qSve85Zf8Liu4o2uNYkYoxFO2G6v57sjgFBfu+M=
In-reply-to: <42D94E95.1060303@colorfullife.com>
References: <42D94E95.1060303@colorfullife.com>
Reply-to: Tim Mattox <tmattox@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
This is just from a simple read of Manfred's patch, but shouldn't one side of
the if-else use the NV_PKTLIMIT_2 value?  If not, why is
np->pkt_limit = NV_PKTLIMIT_1; inside the if-else at all?

On 7/16/05, Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> wrote:
[snip]
> +/* maximum mtu size */
> +#define NV_PKTLIMIT_1  ETH_DATA_LEN    /* hard limit not known */
> +#define NV_PKTLIMIT_2  9100    /* Actual limit according to NVidia: 9202 */
[snip]
> @@ -2007,13 +2093,16 @@
> 
>         /* handle different descriptor versions */
>         if (pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_1 ||
> -               pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_2 ||
> -               pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_3 ||
> -               pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_12 ||
> -               pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_13)
> +                       pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_2 ||
> +                       pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_3 ||
> +                       pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_12 ||
> +                       pci_dev->device == PCI_DEVICE_ID_NVIDIA_NVENET_13) {
>                 np->desc_ver = DESC_VER_1;
> -       else
> +               np->pkt_limit = NV_PKTLIMIT_1;
> +       } else {
>                 np->desc_ver = DESC_VER_2;
> +               np->pkt_limit = NV_PKTLIMIT_1;
> +       }

-- 
Tim Mattox - tmattox@xxxxxxxxx
  http://homepage.mac.com/tmattox/
    I'm a bright... http://www.the-brights.net/


<Prev in Thread] Current Thread [Next in Thread>