Are you wearing bike shorts with a chamois? Do you use chamois cream?

Is the swelling hot, red and sore? If so it's chafing. Chamois cream on that area will help prevent it and aloe vera cream or diaper rash cream can help heal it.