Thanks for asking the query,
Lump near the gum could be due to abscess arrising form the adjacent tooth or can be due to gingival abscess
due to accumulation of bacterial plague
and calculus deep in the gum pockets, to confirm this x-ray is needed.
Drainage of the pus is required , get the root canal treatment
of the infected tooth completed.
Small bump on the gum can be excised surgically.
Go for symptomatic treatment of complete mouth scaling and polishing.
Take complete course of antibiotics and analgesics.
Maintain a good oral hygiene
use antiseptic mouthwash gargles twice daily.
Hope this helps out.