diff options
author | Jeetesh Burman <jburman@nvidia.com> | 2016-05-02 23:47:17 -0400 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2016-05-09 14:48:51 -0400 |
commit | f007a1b0aeab67fc2b54f395818e52ecf2339270 (patch) | |
tree | b96e3b7853daa72e7c0da1bc65f24ae0e78c39cf /drivers/net | |
parent | 7ed60fe4f86fcf5517566c405eb36f2671267c54 (diff) |
net: eqos: replace api as per k-4.4
Bug 200195187
Change-Id: Ia0fa5f26856f387cea39dcf0bcdf6d2ead57cf8e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1140061
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/nvidia/eqos/drv.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/nvidia/eqos/ptp.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/ethernet/nvidia/eqos/drv.c b/drivers/net/ethernet/nvidia/eqos/drv.c index 96c99f405..617027371 100644 --- a/drivers/net/ethernet/nvidia/eqos/drv.c +++ b/drivers/net/ethernet/nvidia/eqos/drv.c | |||
@@ -1712,9 +1712,13 @@ static int eqos_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1712 | 1712 | ||
1713 | #ifdef EQOS_ENABLE_VLAN_TAG | 1713 | #ifdef EQOS_ENABLE_VLAN_TAG |
1714 | ptx_ring->vlan_tag_present = 0; | 1714 | ptx_ring->vlan_tag_present = 0; |
1715 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) | ||
1715 | if (vlan_tx_tag_present(skb)) { | 1716 | if (vlan_tx_tag_present(skb)) { |
1716 | USHORT vlan_tag = vlan_tx_tag_get(skb); | 1717 | USHORT vlan_tag = vlan_tx_tag_get(skb); |
1717 | 1718 | #else | |
1719 | if (skb_vlan_tag_present(skb)) { | ||
1720 | USHORT vlan_tag = skb_vlan_tag_get(skb); | ||
1721 | #endif | ||
1718 | vlan_tag |= (skb->priority << 13); | 1722 | vlan_tag |= (skb->priority << 13); |
1719 | ptx_ring->vlan_tag_present = 1; | 1723 | ptx_ring->vlan_tag_present = 1; |
1720 | if (vlan_tag != ptx_ring->vlan_tag_id || | 1724 | if (vlan_tag != ptx_ring->vlan_tag_id || |
diff --git a/drivers/net/ethernet/nvidia/eqos/ptp.c b/drivers/net/ethernet/nvidia/eqos/ptp.c index 5e5279c85..724ce64b5 100644 --- a/drivers/net/ethernet/nvidia/eqos/ptp.c +++ b/drivers/net/ethernet/nvidia/eqos/ptp.c | |||
@@ -252,8 +252,13 @@ static struct ptp_clock_info eqos_ptp_clock_ops = { | |||
252 | .pps = 0, /* indicates whether the clk supports a PPS callback */ | 252 | .pps = 0, /* indicates whether the clk supports a PPS callback */ |
253 | .adjfreq = eqos_adjust_freq, | 253 | .adjfreq = eqos_adjust_freq, |
254 | .adjtime = eqos_adjust_time, | 254 | .adjtime = eqos_adjust_time, |
255 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0) | ||
255 | .gettime = eqos_get_time, | 256 | .gettime = eqos_get_time, |
256 | .settime = eqos_set_time, | 257 | .settime = eqos_set_time, |
258 | #else | ||
259 | .gettime64 = eqos_get_time, | ||
260 | .settime64 = eqos_set_time, | ||
261 | #endif | ||
257 | .enable = eqos_enable, | 262 | .enable = eqos_enable, |
258 | }; | 263 | }; |
259 | 264 | ||