A relative clause adds information about a noun. If it says WHICH one (essential), use no commas. If it just adds EXTRA information, use commas.
Practice tip: Ask: does the clause tell me WHICH one (no commas) or just add EXTRA info (commas)?