Thank you for your question. Without a full clinical history, clinical examination or at least a clinical photo, it is hard to advise you on the likely cause of the redness and swelling of your ear.
If your ear piercing site is infected, you would experience pain, tenderness (painful on touch/pressure) and the skin will be red and swollen, sometimes with even yellow discharge. It is also possible for ear piercing sites to develop keloids (excessive scar tissue) which are hard reddish lumps without any pain (sometimes may also be itchy).
I would strongly suggest that you visit a general practitioner or an ENT Specialist for an assessment.
Hope this helps and all the best!
Kind regards,
Dr Gan Eng Cern