Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1469590
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] net: fs_enet: make rx_copybreak value configurable |
| Date | 2016-08-24 19:20 +0200 |
| Message-ID | <s9K0h-5j8-7@gated-at.bofh.it> (permalink) |
| References | <s9E4x-17j-5@gated-at.bofh.it> <s9E4y-17j-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/24/2016 03:36 AM, Christophe Leroy wrote: > Measurement shows that on a MPC8xx running at 132MHz, the optimal > limit is 112: > * 114 bytes packets are processed in 147 TB ticks with higher copybreak > * 114 bytes packets are processed in 148 TB ticks with lower copybreak > * 128 bytes packets are processed in 154 TB ticks with higher copybreak > * 128 bytes packets are processed in 148 TB ticks with lower copybreak > * 238 bytes packets are processed in 172 TB ticks with higher copybreak > * 238 bytes packets are processed in 148 TB ticks with lower copybreak > > However it might be different on other processors > and/or frequencies. So it is useful to make it configurable. > > Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> > --- > drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 8 +++++--- > include/linux/fs_enet_pd.h | 1 - > 2 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c > index addcae6..b59bbf8 100644 > --- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c > +++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c > @@ -60,6 +60,10 @@ module_param(fs_enet_debug, int, 0); > MODULE_PARM_DESC(fs_enet_debug, > "Freescale bitmapped debugging message enable value"); > > +static int rx_copybreak = 240; > +module_param(rx_copybreak, int, S_IRUGO | S_IWUSR); > +MODULE_PARM_DESC(rx_copybreak, "Receive copy threshold"); There is an ethtool tunable knob for copybreak now, which you should prefer over a module parameter, see drivers/net/ethernet/cisco/enic/enic_ethtool.c -- Florian
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] Optimisation of fs_enet ethernet driver Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-24 13:00 +0200
[PATCH 2/3] net: fs_enet: don't unmap DMA when packet len is below copybreak Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-24 13:00 +0200
[PATCH 3/3] net: fs_enet: make rx_copybreak value configurable Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-24 13:00 +0200
Re: [PATCH 3/3] net: fs_enet: make rx_copybreak value configurable Florian Fainelli <f.fainelli@gmail.com> - 2016-08-24 19:20 +0200
[PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-24 13:00 +0200
Re: [PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX Eric Dumazet <eric.dumazet@gmail.com> - 2016-08-24 15:10 +0200
Re: [PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX Eric Dumazet <eric.dumazet@gmail.com> - 2016-08-24 15:20 +0200
Re: [PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-24 17:30 +0200
csiph-web