datapath: Use DP_MAX_PORTS when no IN_PORT attribute is present.