diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2011-10-11 20:51:54 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-10-16 16:18:03 -0400 |
commit | 11ba69e876e1141fa4b11a7c0efb256a8df9ae7d (patch) | |
tree | 0b6e6a7c5405b6dce825192be74b94a16d2cb36e | |
parent | de4c7f653b2ff24dfff47edea0d67aa6fc681cee (diff) |
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 <jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 06109af8ae73..c10cc716fdec 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, | |||
6268 | tsync_rx_ctl |= E1000_TSYNCRXCTL_TYPE_EVENT_V2; | 6268 | tsync_rx_ctl |= E1000_TSYNCRXCTL_TYPE_EVENT_V2; |
6269 | config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; | 6269 | config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; |
6270 | is_l2 = true; | 6270 | is_l2 = true; |
6271 | is_l4 = true; | ||
6271 | break; | 6272 | break; |
6272 | default: | 6273 | default: |
6273 | return -ERANGE; | 6274 | return -ERANGE; |