Hi again,

is someone taking care of this patch? I do not want it to be lost.

Greetings,
Oliver

On Mon, Mar 03, 2003 at 11:14:19AM +0100, Oliver Kurth wrote:
> Hello!
> 
> Recently, I had problems using NFS with my kaweth device, tcpdump showed
> fragmented packages. The reason, I found, was the MTU, which is 1514
> by default for kaweth. Setting it to 1500 solved the problems. The 
> attached patch sets the MTU to 1500 by default.
> 
> Greetings,
> Oliver
> 
> -- 
>   .''`.
>  : :' :    Oliver Kurth [EMAIL PROTECTED]
>  `. `'           Debian GNU/Linux maintainer - www.debian.org
>    `-

> --- drivers/usb/kaweth.c.orig Mon Feb  3 18:49:31 2003
> +++ drivers/usb/kaweth.c      Mon Mar  3 10:58:09 2003
> @@ -74,7 +74,7 @@
>  
>  #include "kawethfw.h"
>  
> -#define KAWETH_MTU                   1514
> +#define KAWETH_MTU                   1500
>  #define KAWETH_BUF_SIZE                      1664
>  #define KAWETH_TX_TIMEOUT            (5 * HZ)
>  #define KAWETH_SCRATCH_SIZE          32
> @@ -1034,7 +1034,8 @@
>       kaweth->net->hard_start_xmit = kaweth_start_xmit;
>       kaweth->net->set_multicast_list = kaweth_set_rx_mode;
>       kaweth->net->get_stats = kaweth_netdev_stats;
> -     kaweth->net->mtu = le16_to_cpu(kaweth->configuration.segment_size);
> +     kaweth->net->mtu = le16_to_cpu(kaweth->configuration.segment_size < KAWETH_MTU 
> ?
> +                                    kaweth->configuration.segment_size : 
> KAWETH_MTU);
>  
>       memset(&kaweth->stats, 0, sizeof(kaweth->stats));
>  




-- 
  .''`.
 : :' :    Oliver Kurth [EMAIL PROTECTED]
 `. `'           Debian GNU/Linux maintainer - www.debian.org
   `-

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to