How can I change the gid_0 roce mode?

I use cma_roce_mode to modify gid 0 roce v1 to roce v2, but I doesn’t work. the gid’s info are listed. Can anybody tell me how to do?