]> 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)
commit9d6508543b62fba7ff7174d19ab9909eb251867a
treea6b7bac11b202e278b03e88084c3f3d929f115c3
parent814122ae0b53b626d0357d3393853f75874206ff
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