Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1209035
| From | Noam Camus <noamc@ezchip.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [v1 0/6] *** nps_enet fixups *** |
| Date | 2015-08-18 07:10 +0200 |
| Message-ID | <pYHjP-4HG-1@gated-at.bofh.it> (permalink) |
| References | <pYlCG-6MJ-1@gated-at.bofh.it> <pYwy6-5Iw-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: David Miller [mailto:davem@davemloft.net] Sent: Monday, August 17, 2015 8:36 PM > You should not move TX completion out of NAPI handling, NAPI poll is exactly where it belongs. > > If you handle it in hardware interrupt context you have to use > dev_kfree_skb_irq() which defers the operation to software interrupt context anyways and is thus expensive. > Whereas if you keep TX completion in your NAPI handler the kfree is handled synchronously and efficiently, as well as making SKB's potentially available for RX reclaim. I followed "Hardware Architecture" section from: http://www.linuxfoundation.org/collaborate/workgroups/networking/napi and came up with "reduce processing latency" idea. Anyway, I will restore TX completion back to NAPI poll. > I'm not applying this series, you are doing with TX handling exactly what we tell people not to do. I will come up with revised series in v2. Noam -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[v1 0/6] *** nps_enet fixups *** Noam Camus <noamc@ezchip.com> - 2015-08-17 08:00 +0200
Re: [v1 0/6] *** nps_enet fixups *** David Miller <davem@davemloft.net> - 2015-08-17 19:40 +0200
RE: [v1 0/6] *** nps_enet fixups *** Noam Camus <noamc@ezchip.com> - 2015-08-18 07:10 +0200
Re: [v1 0/6] *** nps_enet fixups *** David Miller <davem@davemloft.net> - 2015-08-18 07:30 +0200
csiph-web