common/cnxk: support custom L2/L3 protocols parsing