net/hns3: get device capability in primary process