Thread (2 messages) flat view 2 messages, 1 author, 2016-12-16

Re: [PATCH net] sfc: skip ptp allocations on secondary interfaces

From: Jarod Wilson <hidden>
Date: 2016-12-16 15:48:24
Also in: lkml

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 <redacted>
CC: Bert Kenward <redacted>
CC: netdev@vger.kernel.org
Signed-off-by: Jarod Wilson <redacted>
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help