source:
Intel DPDK Patches/hardware_timestamp.patch
@
82facc5
Last change on this file since 82facc5 was c04929c, checked in by Richard Sanger <rjs51@…>, 9 years ago | |
---|---|
|
|
File size: 1.1 KB |
-
lib/librte_pmd_e1000/igb_rxtx.c
diff -ur ./DPDKORG/lib/librte_pmd_e1000/igb_rxtx.c ./DPDK/lib/librte_pmd_e1000/igb_rxtx.c
old new 1656 1656 if (rxq->drop_en) 1657 1657 srrctl |= E1000_SRRCTL_DROP_EN; 1658 1658 1659 /* Place timestamps at the start of the receive buffer */ 1660 srrctl |= E1000_SRRCTL_TIMESTAMP; 1661 1659 1662 E1000_WRITE_REG(hw, E1000_SRRCTL(i), srrctl); 1660 1663 1661 1664 /* Enable this RX queue. */ … … 1751 1754 /* Enable Receives. */ 1752 1755 E1000_WRITE_REG(hw, E1000_RCTL, rctl); 1753 1756 1757 /* Timestamp every rx packet */ 1758 rctl = E1000_READ_REG(hw, E1000_TSYNCRXCTL); 1759 rctl &= ~(E1000_TSYNCRXCTL_TYPE_MASK); 1760 rctl |= E1000_TSYNCRXCTL_ENABLED; 1761 rctl |= E1000_TSYNCRXCTL_TYPE_ALL; 1762 E1000_WRITE_REG(hw, E1000_TSYNCRXCTL, rctl); 1763 1764 rctl = 0; 1765 E1000_WRITE_REG(hw, E1000_TSYNCRXCFG, rctl); 1766 /* Start the clock timestamping */ 1767 E1000_WRITE_REG(hw, E1000_TSAUXC, 0x0); 1768 E1000_WRITE_FLUSH(hw); 1754 1769 /* 1755 1770 * Setup the HW Rx Head and Tail Descriptor Pointers. 1756 1771 * This needs to be done after enable.
Note: See TracBrowser
for help on using the repository browser.