If you haven't started weaning the puppies then your bitch will still be producing milk.
Begin introducing the puppies to soft moist foods that are easily digested. Try minced meat, rolled oats porridge, rice, cooked veggies but definitely no dairy products.
In the early stages of weaning it is important to remember that the bitch's milk is still an important source of nutrients while the puppies' digestive and immune systems learn to handle new food. With a quick increase of the intake of food and decrease in suckling, puppies are normally weaned by 6 weeks.
For mastitis get some castor oil, separate the bitch from the pups, massage into teats twice daily and remove it for suckling. Do not allow the puppies to suckle while the castor oil is on the teats as it will give them diahorrea.
Continue until all symptoms are clear.
The castor oil will stimulate circulation and the removal of toxins and waste that is causing the mastitis. It is also inexpensive and very efficient, with no side-effects.
I recommend you start a bitch with mastitis on a mix of blood cleansers to clear the system of any build up of toxins.