diff options
author | Martin Habets <mhabets@solarflare.com> | 2018-01-25 17:25:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-25 16:05:14 -0500 |
commit | 23418dc131464ffe29c9ac2d71cf95bf2883fc4f (patch) | |
tree | 00d9a768627f0960913a007e371fb840b1345862 /drivers/net/ethernet/sfc/nic.h | |
parent | 9c3afb33ae587723d2acda044a352670ec8d5b82 (diff) | |
download | linux-23418dc131464ffe29c9ac2d71cf95bf2883fc4f.tar.bz2 |
sfc: use main datapath for HW timestamps if available
We can now transmit SKBs in 2 ways:
1. Via the MC (for the 7XXX series and earlier), using
efx_ptp_xmit_skb_mc().
2. Via the TX queues on the dedicated PTP channel (8XXX series and later),
using efx_ptp_xmit_skb_queue().
The PTP worker thread uses the method set up at probe time. It never
checked the return code from the old efx_ptp_xmit_skb(), so it now
returns void.
We increment the TX dropped counter of the device if the transmit fails.
As a result of the probe per channel the remove gets called multiple times.
Clean up efx->ptp_data properly to avoid the 2nd call blowing up.
Signed-off-by: Martin Habets <mhabets@solarflare.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
0 files changed, 0 insertions, 0 deletions