Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1543534
| From | Jarod Wilson <jarod@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net] sfc: skip ptp allocations on secondary interfaces |
| Date | 2016-12-16 16:50 +0100 |
| Message-ID | <sP2VH-5xB-13@gated-at.bofh.it> (permalink) |
| References | <sOKYO-1X6-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016-12-15 3:31 PM, Jarod Wilson wrote: > Rather than allocating efx_ptp_data, a buffer, a workqueue, etc., and then > ultimately deciding not to call ptp_clock_register() for non-primary > interfaces, just exit out of efx_ptp_prober() earlier. Saves a little > memory and speeds up init and teardown slightly. > > CC: linux-net-drivers@solarflare.com > CC: Edward Cree <ecree@solarflare.com> > CC: Bert Kenward <bkenward@solarflare.com> > CC: netdev@vger.kernel.org > Signed-off-by: Jarod Wilson <jarod@redhat.com> Self-Nak on this one. Talking to Bert off-list, he pointed out that the driver uses the PTP structure allocated here for the secondary interface to do internal time-stamping and the like. While it might be ideal not to intermingle PTP structs with non-PTP work, disabling this right now is obviously a non-starter. -- Jarod Wilson jarod@redhat.com
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH net] sfc: skip ptp allocations on secondary interfaces Jarod Wilson <jarod@redhat.com> - 2016-12-15 21:40 +0100 Re: [PATCH net] sfc: skip ptp allocations on secondary interfaces Jarod Wilson <jarod@redhat.com> - 2016-12-16 16:50 +0100
csiph-web