aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2012-10-23 04:09:21 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-11-22 04:39:35 -0500
commit6ccf7a575c1ebef004ae0b015db8ad1353dc66b3 (patch)
tree8fec541e2740761deab6c9b1072243f331aa331d /drivers/net/ethernet/intel/ixgbe
parent21cc57fbdc698cd89955dd92be81776af6456dd7 (diff)
ixgbe: use ETQF filter name instead of magic number
This patch removes a magic number that was used for the ETQF used for filtering L2 ptp packets and replaces it with the supplied define that previously existed. The intent is to clarify that this filter is already set aside for L2 1588 work. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
index 01d99af0b9ba..29ca2931c22a 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
@@ -704,14 +704,14 @@ int ixgbe_ptp_hwtstamp_ioctl(struct ixgbe_adapter *adapter,
704 /* Store filter value for later use */ 704 /* Store filter value for later use */
705 adapter->rx_hwtstamp_filter = config.rx_filter; 705 adapter->rx_hwtstamp_filter = config.rx_filter;
706 706
707 /* define ethertype filter for timestamped packets */ 707 /* define ethertype filter for timestamping L2 packets */
708 if (is_l2) 708 if (is_l2)
709 IXGBE_WRITE_REG(hw, IXGBE_ETQF(3), 709 IXGBE_WRITE_REG(hw, IXGBE_ETQF(IXGBE_ETQF_FILTER_1588),
710 (IXGBE_ETQF_FILTER_EN | /* enable filter */ 710 (IXGBE_ETQF_FILTER_EN | /* enable filter */
711 IXGBE_ETQF_1588 | /* enable timestamping */ 711 IXGBE_ETQF_1588 | /* enable timestamping */
712 ETH_P_1588)); /* 1588 eth protocol type */ 712 ETH_P_1588)); /* 1588 eth protocol type */
713 else 713 else
714 IXGBE_WRITE_REG(hw, IXGBE_ETQF(3), 0); 714 IXGBE_WRITE_REG(hw, IXGBE_ETQF(IXGBE_ETQF_FILTER_1588), 0);
715 715
716#define PTP_PORT 319 716#define PTP_PORT 319
717 /* L4 Queue Filter[3]: filter by destination port and protocol */ 717 /* L4 Queue Filter[3]: filter by destination port and protocol */