Boston Red Sox left-handed pitcher Eduardo Rodriguez underwent knee surgery that is expected to keep him from pitching for six months, the team announced on Tuesday.

The team also announced that first baseman/DH Hanley Ramirez had shoulder surgery Tuesday.

Rodriguez, who missed six weeks this season because of a right knee subluxation, had right knee patellofemoral ligament reconstruction. Rodriguez went 6-7 with a 4.19 ERA in 2017. He made 24 starts and one relief appearances.

Ramirez, meanwhile, underwent left shoulder arthroscopy and debridement, also performed by Dr. Andrews. Ramirez, 33, is expected to be ready for the 2018 season.

In 2017, Ramirez played 133 games, with 23 home runs. Ramirez batted .517 in four postseason games.