summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/liquidio/octeon_device.h
diff options
context:
space:
mode:
authorIntiyaz Basha2017-08-11 20:22:09 +0200
committerDavid S. Miller2017-08-12 00:02:51 +0200
commitaa69ff9e9c32db8aa84835baffea1b70c39e5112 (patch)
tree27d71657af44bba47e683e96cf54dd58a666d925 /drivers/net/ethernet/cavium/liquidio/octeon_device.h
parentselftests: bpf: add check for ip XDP redirect (diff)
downloadkernel-qcow2-linux-aa69ff9e9c32db8aa84835baffea1b70c39e5112.tar.gz
kernel-qcow2-linux-aa69ff9e9c32db8aa84835baffea1b70c39e5112.tar.xz
kernel-qcow2-linux-aa69ff9e9c32db8aa84835baffea1b70c39e5112.zip
liquidio: moved ptp_enable to octeon_device structure
ptp_enable was a global static variable. Moved this global variable to octeon_device structure and removed extra device id check. Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/octeon_device.h')
-rw-r--r--drivers/net/ethernet/cavium/liquidio/octeon_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.h b/drivers/net/ethernet/cavium/liquidio/octeon_device.h
index 31efdef02a24..b014e6ad0e9a 100644
--- a/drivers/net/ethernet/cavium/liquidio/octeon_device.h
+++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.h
@@ -554,6 +554,7 @@ struct octeon_device {
} loc;
atomic_t *adapter_refcount; /* reference count of adapter */
+ bool ptp_enable;
};
#define OCT_DRV_ONLINE 1