If the greatest good for ourselves, our friends, and mankind is found within the will of God, then that truly is love: obeying God.
"And this is love: that we walk in obedience to his commands. As you have heard from the beginning, his command is that you walk in love." - 2 John 1:6