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 wasn't lowered. The Eagles "wanted to show their support by rewarding him over the remaining years of his contract," the source said.

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

The outside linebacker is slated to earn $6.4 million in 2015, $6 million in 2016, $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 $8 million guaranteed came in the first two years.

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

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.

jmclane@phillynews.com @Jeff_McLane