]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.6.7/ixgbe-ptp-get_ts_info-missing-software-support.patch
Linux 3.6.7
[thirdparty/kernel/stable-queue.git] / releases / 3.6.7 / ixgbe-ptp-get_ts_info-missing-software-support.patch
CommitLineData
2d3823c0
GKH
1From 50f8d35de8ba4af311ea1176c534e8b73bb198e5 Mon Sep 17 00:00:00 2001
2From: Jacob Keller <jacob.e.keller@intel.com>
3Date: Wed, 31 Oct 2012 22:30:54 +0000
4Subject: ixgbe: PTP get_ts_info missing software support
5
6From: Jacob Keller <jacob.e.keller@intel.com>
7
8commit 50f8d35de8ba4af311ea1176c534e8b73bb198e5 upstream.
9
10This patch corrects the ethtool get_ts_info functon which did not state that
11software timestamping was supported, even though it is.
12
13Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
14Tested-by: Stephen Ko <stephen.s.ko@intel.com>
15Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
16Signed-off-by: David S. Miller <davem@davemloft.net>
17Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19---
20 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 3 +++
21 1 file changed, 3 insertions(+)
22
23--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
24+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
25@@ -2673,6 +2673,9 @@ static int ixgbe_get_ts_info(struct net_
26 case ixgbe_mac_X540:
27 case ixgbe_mac_82599EB:
28 info->so_timestamping =
29+ SOF_TIMESTAMPING_TX_SOFTWARE |
30+ SOF_TIMESTAMPING_RX_SOFTWARE |
31+ SOF_TIMESTAMPING_SOFTWARE |
32 SOF_TIMESTAMPING_TX_HARDWARE |
33 SOF_TIMESTAMPING_RX_HARDWARE |
34 SOF_TIMESTAMPING_RAW_HARDWARE;