Hello Rajiv Ji,
Swelling in the penis can be caused by several factors, including infections, allergic reactions, or injuries. Since it started suddenly, it’s best to see a healthcare provider to get it checked and identify the exact cause.
In the meantime, avoid activities that might further irritate the area, and wear loose clothing to minimize discomfort.