#ifdef EQOS_ENABLE_VLAN_TAG
ptx_ring->vlan_tag_present = 0;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
if (vlan_tx_tag_present(skb)) {
USHORT vlan_tag = vlan_tx_tag_get(skb);
-
+#else
+ if (skb_vlan_tag_present(skb)) {
+ USHORT vlan_tag = skb_vlan_tag_get(skb);
+#endif
vlan_tag |= (skb->priority << 13);
ptx_ring->vlan_tag_present = 1;
if (vlan_tag != ptx_ring->vlan_tag_id ||
.pps = 0, /* indicates whether the clk supports a PPS callback */
.adjfreq = eqos_adjust_freq,
.adjtime = eqos_adjust_time,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
.gettime = eqos_get_time,
.settime = eqos_set_time,
+#else
+ .gettime64 = eqos_get_time,
+ .settime64 = eqos_set_time,
+#endif
.enable = eqos_enable,
};