ATLANTA — Tim Hudson pitched six-plus strong innings and added an RBI and Ramiro Pena hit a two-run single to help the Atlanta Braves beat the Chicago Cubs 5-1 on Sunday.

The three-game sweep ended a 5-1 homestand for Atlanta, which got a solo homer from Dan Uggla in the eighth off Hisanori Takahashi.

Chicago ended a six-game road trip with four losses as it heads to Wrigley Field for the home opener against Milwaukee on Monday.

Hudson (1-0) allowed three hits, one run and two walks in 6.2 innings. He struck out seven.

Chicago’s Jeff Samardzija (1-1) set a career high with 13 strikeouts, but gave up four hits, four runs and four walks in 5.2 innings.

The Braves, without injured starters Freddie Freeman and Andrelton Simmons, had struck out 10 times by the end of the fourth, but they got a surprising offensive lift from Ramiro Pena, a reserve shortstop batting in the No. 8 spot.

In the fifth, Samardzija retired the first two batters he faced before Pena doubled and Hudson walked. With B.J. Upton batting, a wild pitch advanced both runners. Samardzija then walked Upton on a wild pitch that scored Pena and made it 1-1.

In the sixth, Justin Upton whiffed for the 13th strikeout, but Samardzija loaded the bases with two out on Uggla’s fielder’s choice grounder and Juan Francisco’s single before he hit Chris Johnson with a pitch.

Pena, the next batter, singled into right field to drive in two runs to make it 3-1 and chase Samardzija. Hudson followed with an RBI single off reliever Michael Bowden to give the Braves a 4-1 lead.

Chicago took a 1-0 lead in the first when David DeJesus doubled off the right-field wall, moved to third on Starlin Castro’s flyout and scored on Anthony Rizzo’s RBI groundout.

Luis Avilan, who replaced Hudson with runners on first and second in the seventh, ended the threat by retiring pinch-hitter Scott Hairston on a forceout.

Avilan stranded two runners in the eighth when Nate Schierholtz grounded out.

Uggla’s homer was his second. Braves reliever Jordan Walden struck out the side in the ninth.

Reds 6, Nationals 3: In Cincinnati, Johnny Cueto outlasted Stephen Strasburg in a matchup of young aces, and Jay Bruce drove in three runs for the Reds.

Cueto needed 108 pitches to get through six innings, allowing seven hits and three runs. He walked three and struck out six. Aroldis Chapman allowed one hit and had two strikeouts in the ninth for his second save.

Strasburg (1-1) allowed nine hits and six runs with four walks and five strikeouts in 5.1 innings. He threw 114 pitches, 73 for strikes.

Bruce, Shin-Soo Choo, former Slidell High star Xavier Paul and Brandon Phillips each had two hits to back Cueto (1-0) and help the Reds win the rubber match of their three-game series with Washington. They finished 4-2 at home against the Nationals and Los Angeles Angels, two teams expected to contend this season for post-season berths.

Diamondbacks 8, Brewers 7, 11 innings: In Milwaukee, pinch hitter Eric Hinske belted a long two-run homer in the 11th inning for Arizona.

With Cliff Pennington aboard following a leadoff double, Hinske drove a 1-2 pitch from John Axford (0-1) onto the concourse beyond the wall in center field. It was Hinske’s eighth career pinch-hit homer.

Tony Sipp (1-0) struck out two in a perfect 10th inning, and Heath Bell held on for his first save after J.J. Putz blew an opportunity in the ninth.

Brewers catcher and former UL-Lafayette standout Jonathan Lucroy had a one-out RBI single, but Rickie Weeks, a former Southern star, and pinch hitter Kyle Lohse — a starting pitcher forced into duty after manager Ron Roenicke ran through his available players — struck out to end the game.

Ailing slugger Ryan Braun stepped into the on-deck circle with Weeks at the plate, but Roenicke called him back into the dugout after he struck out.

Rockies 9, Padres 1: In Denver, Dexter Fowler hit an early two-run homer and Jhoulys Chacin pitched effectively into the seventh inning for the Rockies.

Wilin Rosario broke open a tight game with a three-run homer in the seventh as the Rockies improved to 5-1, their best start since 1995 when the Blake Street Bombers began 7-1.

Chacin (1-0) turned in another efficient performance as he surrendered one run before being pulled with two outs in the seventh. Chacin threw 99 pitches, nearly becoming the first Rockies starter to throw more than 100 pitches since June 12 — a stretch of 108 games.

Mets 4, Marlins 3: In New York, Marlon Byrd grounded a two-run single just inside third base in the bottom of the ninth inning for the Mets.

Daniel Murphy homered and Anthony Recker had a run-scoring double for the Mets, who spoiled an impressive major league debut by prized Miami pitching prospect Jose Fernandez, who had eight strikeouts and allowed one run in five innings.

Justin Ruggiano, Chris Valaika and Donovan Solano (three hits) each had an RBI double off substitute starter Aaron Laffey to give the Marlins an early 3-0 cushion. But closer Steve Cishek (0-1) was unable to hold a one-run lead in the ninth.

Dodgers 6, Pirates 2: In Los Angeles, Hyun-Jin Ryu earned his first major league victory, shrugging off a two-run homer in the first inning by Andrew McCutchen.

Adrian Gonzalez drove in four runs with three hits and Justin Sellers homered for the Dodgers.

Ryu (1-1) allowed two runs and three hits in 6.1 innings, striking out six and walking two. The 26-year-old lefty from South Korea signed a $36 million, six-year contract with the Dodgers in December after they bid $25.7 million to win exclusive rights to negotiate with him.

Matt Kemp, who entered the game in a season-opening 1-for-18 slump, gave the Dodgers a 3-2 lead in the third with a sacrifice fly after Carl Crawford led off with a double and advanced on Nick Punto’s sacrifice bunt.

Gonzalez added a run in the fifth with an RBI single. The Dodgers tacked on two more in the seventh against Chris Leroux with Sellers’ leadoff homer and Gonzalez’s run-scoring single.

Cardinals 14, Giants 3: In San Francisco, Matt Cain became the first Giants pitcher to allow nine runs in an inning since 1902 when Matt Carpenter and the St. Louis Cardinals tagged him in the fourth inning.

According to research by the Elias Sports Bureau provided by the team, Cain (0-1) was the first Giants pitcher to give up so many runs in a single inning since John Cronin on Sept. 27, 1902, in the second game of New York’s doubleheader against Brooklyn.

Cain retired the first nine batters, then gave up seven hits while getting just two outs in the fourth. Carlos Beltran, Carpenter and Matt Adams each drove in two runs during the outburst. Cain left after Carpenter’s two-run single.