Keep it up, it will pass.
Viagra can be helpful as a temporary aid, it works really well. You don?t seem to have severe ED, so that?s good. I?ve had good sex thanks to it, but I try to use it as less as possible these days. It?s different for everyone. Trying smaller doses can also be a good idea. But you?re a doctor, you know about that.
And finally, redirecting all our desires towards our girlfriends or wives is also a good thing. I personally don?t masturbate, because I have a pretty severe case of ED, and that would probably slow down my recovery a lot. But even for other guys, especially for those in a relationship, I think it?s good to masturbate as less as possible. Not only for your brain, but also for your relationship: you?re more likely to be looking forward to a great evening with your wife, and to be more sexually engaging with her if she?s your only outlet.
You?re doing good.