US pork producer Smithfield Foods has posted higher first-quarter earnings, helped by the increase in hog prices.