Both. Here are the definitions and two examples.
Love of people.
The definition for "of" is (used to indicate derivation, origin,
or source): Animals will never understand the love of people.
Love for people.
The definition of "for" is (intended to belong to, or be used in
connection with): My dog bobo has developed a love for people.