same driver for with-mem and mem-free cards

Does this same stack (MLX-OFED / OFED) works for with-mem and mem-free cards

where is actually distinction between them in the code

Out of curiosity, why do you keep asking the exact same question in multiple places? It doesn’t help.

The short answer is “should” although i don’t believe anybody is testing those with-mem cards recently.

get a ConnectX2/3 card - this is where you will the sparks.