Hi if it is an infection taking just a brufen will not help as it is only a pain killer. Substantial relief will be experienced only after a course of antibiotics which will reduce the infection.
Next Steps
see your dentist immediately for the appropriate antibiotic treatment.
Health Tips
for temporary pain relief take Ketorol DT