| To: | Jon Mason <jdmason@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/2] r8169: Jumbo Frames mini-increase |
| From: | Francois Romieu <romieu@xxxxxxxxxxxxx> |
| Date: | Mon, 28 Feb 2005 20:32:04 +0100 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20050228172753.GA13280@xxxxxxxxxx> |
| References: | <4220ADA6.2040506@xxxxxxxxxxxxxxxxxxxx> <20050226203518.GA14688@xxxxxxxxxxxxxxxxxxxxxxxxxx> <42224CF5.5090601@xxxxxxxxxxxxxxxxxxxx> <20050227235210.GA27271@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20050228172753.GA13280@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
Jon Mason <jdmason@xxxxxxxxxx> :
[...]
> Applies cleanly to linux-2.6.11-rc4-mm1 and tested on amd64
Thanks, I will test it on x86/sparc64.
[...]
> @@ -1576,8 +1577,12 @@ rtl8169_hw_start(struct net_device *dev)
>
> RTL_W8(Cfg9346, Cfg9346_Unlock);
> RTL_W8(ChipCmd, CmdTxEnb | CmdRxEnb);
> - RTL_W8(EarlyTxThres, EarlyTxThld);
>
> + if (dev->mtu < 7400)
> + RTL_W8(EarlyTxThres, EarlyTxThld);
> + else
> + RTL_W8(EarlyTxThres, LargeSendETT);
> +
1 - Any objection against ternary operator, say:
RTL_W8(EarlyTxThres, (dev->mtu < 7400) ? EarlyTxThld : LargeSendETT);
2 - patch includes uneeded tabs on the last added (empty) line.
--
Ueimor
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/2] r8169: RTL8169_registers clean-up, Jon Mason |
|---|---|
| Next by Date: | Re: [PATCH 1/2] r8169: Jumbo Frames mini-increase, Jon Mason |
| Previous by Thread: | [PATCH 1/2] r8169: Jumbo Frames mini-increase, Jon Mason |
| Next by Thread: | Re: [PATCH 1/2] r8169: Jumbo Frames mini-increase, Jon Mason |
| Indexes: | [Date] [Thread] [Top] [All Lists] |