Solution by maromex.
Let P(x,y) be the given assertion f(x2+xy)=xf(x)+f(x)f(y).
P(0,y):f(0)=f(0)f(y), which means either f(y) is constant or f(0)=0. The only constant function that works is f(x)=0, so we have f(0)=0 anyway.
P(x,−x):0=xf(x)+f(x)f(−x). This means that for every real x,
f(x)=0 or f(−x)=−x.
Case 1: f(x0)=0 for some real x0=0
P(x0,x0t−x0):f(t)=0. So f(x)=0 for all real x. This function works.
Case 2: f(x)=0 for all nonzero real x
We have f(−x)=−x for all nonzero real x, which means f(x)=x for all nonzero real x. We have f(0)=0 too, so f(x)=x for all real x. This function works.
Combining cases, the functions that work are f(x)=0 for all real x and f(x)=x for all real x.