]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe4031f2984e990d7fbadbf19f2a532c702a1c7c
treea6b7bac11b202e278b03e88084c3f3d929f115c3
parentb3c70ef235b562e5dc3c928bcd208ce202ac5c53
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