The Milwaukee Brewers are the toast of the West Coast.

Yovani Gallardo pitched into the seventh inning and the Brewers rode an early offensive outburst to another win, beating the San Diego Padres 6-3 Tuesday night for their ninth straight win.

The nine-game winning streak is Milwaukee’s longest since it won 10 in a row Aug. 19-28, 2003. The Brewers started 2-8 this season.

Gallardo (2-1) allowed three runs and eight hits in 6 2/3 innings, with five walks and two strikeouts. Jonathan Lucroy hit a two-run double in the Brewers’ five-run second inning.

“It was a struggle, command-wise,” said Brewers manager Ron Roenicke, who was ejected in the fifth inning for arguing a checked swing, of Gallardo. “I don’t know why he’s out of whack like he is, but if he can keep us in ballgames and win ballgames when he’s struggling, it’s going to be a nice thing when he gets going.”

Jim Henderson pitched the ninth for his fifth save in five chances.

Padres starter Clayton Richard (0-2), who missed his last start due to the flu, allowed six runs on six hits in 1 2/3 innings.

The Padres have lost five straight overall and seven straight at home, their longest skid since a seven-game losing streak Aug. 26-Sept. 5, 2010, at Petco Park. They have scored six runs in their five-game losing streak and are 5-15 on the season.

The Brewers broke the game open in the second on a two-run single by Yuniesky Betancourt, a groundout by Segura and Lucroy’s double after an intentional walk to Ryan Braun.

Gallardo’s victory was his second straight since he was arrested on a drunken-driving charge April 16. He left in the seventh after issuing three straight walks, his last to Carlos Quentin to load the bases with two out.

Left-hander Tom Gorzelanny came on and struck out Yonder Alonso on three pitches to end the threat.

“It was huge. It’s a big part of the order. He came in and just picked up the whole team,” Henderson said of Gorzelanny.

Quentin, playing in his first game since his eight-game suspension for his part in a brawl with the Los Angeles Dodgers and Zack Greinke April 11, drove in the Padres’ first run with a single in San Diego’s two-run first.

The Padres went up 2-1 in the bottom of the first on Quentin’s RBI single and another by Alonso after Braun’s infield grounder scored Segura, who had tripled. Segura finished with three hits.

Thad Weber pitched 4 1/3 scoreless innings in relief of Richard for the Padres.