This is a paronychia. Due to the chronic nature of the problem, the adjacent nail should be removed for proper drainage and healing, as shown in the second photo.