The Eagles and Connor Barwin agreed to restructure the remaining four years of his contract, an NFL source said.

While the particulars of the restructuring were not immediately known, Barwin's $7 million salary-cap number for 2015 was not lowered. The Eagles guaranteed all of Barwin's 2015 salary ($6.4 million) and $3 million of his 2016 salary ($6 million), the source said.

"I'm not going anywhere!" Barwin said on Twitter.

The outside linebacker is slated to earn $7 million in 2017 and $8.5 million in 2018.

The Eagles signed Barwin to a six-year, $40 million contract in March 2013. All of the guaranteed $8 million in the original deal came in the first two years.

He was instantly one of the most versatile defenders in his first year with the Eagles and exploded with 141/2 sacks last season. Barwin was voted to his first Pro Bowl last season.

While Barwin has done more than asked since he joined the Eagles, NFL teams don't typically give players more money, particularly two years into a deal, unless they're looking to lower the immediate cap figure.

The Eagles recently re-signed outside linebacker Brandon Graham to a four-year, $26 million contract with $13 million guaranteed. Barwin's new deal could have come as a result, or it could have been a good-faith offering from coach Chip Kelly after recent star players left in the prime of their careers and in the middle of their contracts.