Is your tub cast iron, steel or acrylic?
Remove as much as the peeling/chipping as you can and give a light sanding to the raised edges. There are kits at home improvement stores for patching and repairing, or also kits to repaint the tub entirely.
Hi! Is it the finish or was it painted? If it is paint, you will need to strip it off.