The Bengals reached an agreement with one of their defensive ends on an extension on Monday and set in motion the other becoming one of the top free agents in next year’s class.

Carlos Dunlap has agreed to a six-year extension worth $40 million. The team is expected to announce the deal today.

According to Pro Football Talk, Dunlap will earn $18.7 million between now and the start of training camp next year and $20 million total during the 2013 and ’14 seasons. Dunlap, who is entering his fourth season, was entering the final year of his rookie deal and had a cap number of $1.489 million.

Drafted in the second round in 2010, Dunlap has been rated among the top pass rushers in the league. According to Pro Football Focus last season, Dunlap had 49 pressures in 363 pass rushing snaps off the left side. In three seasons he has 20 sacks, including 6.0 last season. He also has scored two touchdowns in his career, including one last year off an interception in the regular-season finale against Baltimore.