sfc: only advertise TX timestamping if we have the license for it
authorMartin Habets <mhabets@solarflare.com>
Thu, 25 Jan 2018 17:26:31 +0000 (17:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jan 2018 21:05:14 +0000 (16:05 -0500)
commit6aa47c87cb053670bb636fb2001deb4a868f9486
treea6b7bac11b202e278b03e88084c3f3d929f115c3
parent2935e3c38228ad9bf073eeb0eedff5849eea63db
sfc: only advertise TX timestamping if we have the license for it

We check the license for TX hardware timestamping capability.
The PTP probe will have enabled PTP sync events from the adapter.  If
 later, at TX queue init, it turns out we do not have the license, we
 don't need the sync events either.

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>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ptp.c