From 11ba69e876e1141fa4b11a7c0efb256a8df9ae7d Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Wed, 12 Oct 2011 00:51:54 +0000 Subject: [PATCH] igb: enable l4 timestamping for v2 event packets 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. Signed-off-by: Jacob E Keller Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igb/igb_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 06109af..c10cc71 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -6268,6 +6268,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; -- 2.7.4