A 28-year-old man presents with episodic gross hematuria following upper respiratory infections.Renal biopsy shows mesangial IgA deposits.What is the diagnosis?