• Martin Habets's avatar
    sfc: use main datapath for HW timestamps if available · 23418dc1
    Martin Habets authored
    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: default avatarMartin Habets <mhabets@solarflare.com>
    Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    23418dc1
ptp.c 58.4 KB