common/cnxk: fix build with custom maximum port config