]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
igb: enable l4 timestamping for v2 event packets
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 12 Oct 2011 00:51:54 +0000 (00:51 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:00:35 +0000 (21:00 +0800)
When enabling hardware timestamping for ptp v2 event packets, the
software does not setup the queue for l4 packets, although layer 4
packets are valid for v2. This patch adds the flag which enables
setting up a queue and enabling udp packet timestamping.

(cherry picked from commit 11ba69e876e1141fa4b11a7c0efb256a8df9ae7d)
Signed-off-by: Jacob E Keller <jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_main.c

index 72ff694b017b94bb14c75113a4bb5341f9ab52ee..a3db0395a7fdecca4cdbe0fa2dba539869cfadc1 100644 (file)
@@ -6269,6 +6269,7 @@ static int igb_hwtstamp_ioctl(struct net_device *netdev,
                tsync_rx_ctl |= E1000_TSYNCRXCTL_TYPE_EVENT_V2;
                config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;
                is_l2 = true;
+               is_l4 = true;
                break;
        default:
                return -ERANGE;