Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.pipelines.fabric; |
| 18 | |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 19 | import com.google.common.collect.ImmutableList; |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 20 | import com.google.common.collect.ImmutableMap; |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 21 | import com.google.common.collect.ImmutableSet; |
| 22 | import org.onlab.packet.DeserializationException; |
| 23 | import org.onlab.packet.Ethernet; |
| 24 | import org.onlab.util.ImmutableByteSequence; |
| 25 | import org.onosproject.net.ConnectPoint; |
| 26 | import org.onosproject.net.DeviceId; |
| 27 | import org.onosproject.net.Port; |
| 28 | import org.onosproject.net.PortNumber; |
| 29 | import org.onosproject.net.device.DeviceService; |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 30 | import org.onosproject.net.flow.TrafficTreatment; |
| 31 | import org.onosproject.net.flow.criteria.Criterion; |
| 32 | import org.onosproject.net.flow.instructions.Instructions; |
| 33 | import org.onosproject.net.packet.DefaultInboundPacket; |
| 34 | import org.onosproject.net.packet.InboundPacket; |
| 35 | import org.onosproject.net.packet.OutboundPacket; |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 36 | import org.onosproject.net.pi.model.PiMatchFieldId; |
| 37 | import org.onosproject.net.pi.model.PiPipelineInterpreter; |
| 38 | import org.onosproject.net.pi.model.PiTableId; |
| 39 | import org.onosproject.net.pi.runtime.PiAction; |
| 40 | import org.onosproject.net.pi.runtime.PiControlMetadata; |
| 41 | import org.onosproject.net.pi.runtime.PiPacketOperation; |
| 42 | |
| 43 | import java.nio.ByteBuffer; |
| 44 | import java.util.Collection; |
| 45 | import java.util.List; |
| 46 | import java.util.Optional; |
| 47 | import java.util.Set; |
| 48 | |
| 49 | import static java.lang.String.format; |
| 50 | import static java.util.stream.Collectors.toList; |
| 51 | import static org.onlab.util.ImmutableByteSequence.copyFrom; |
Carmelo Cascone | 6880ba6 | 2018-09-06 00:04:34 -0700 | [diff] [blame] | 52 | import static org.onosproject.net.PortNumber.CONTROLLER; |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 53 | import static org.onosproject.net.PortNumber.FLOOD; |
| 54 | import static org.onosproject.net.flow.instructions.Instruction.Type.OUTPUT; |
| 55 | import static org.onosproject.net.pi.model.PiPacketOperationType.PACKET_OUT; |
| 56 | |
| 57 | /** |
| 58 | * Interpreter for fabric pipeline. |
| 59 | */ |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 60 | public class FabricInterpreter extends AbstractFabricHandlerBehavior |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 61 | implements PiPipelineInterpreter { |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame] | 62 | |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 63 | private static final int PORT_BITWIDTH = 9; |
Carmelo Cascone | 6880ba6 | 2018-09-06 00:04:34 -0700 | [diff] [blame] | 64 | |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 65 | // Group tables by control block. |
| 66 | private static final Set<PiTableId> FILTERING_CTRL_TBLS = ImmutableSet.of( |
| 67 | FabricConstants.FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN, |
| 68 | FabricConstants.FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER); |
| 69 | private static final Set<PiTableId> FORWARDING_CTRL_TBLS = ImmutableSet.of( |
| 70 | FabricConstants.FABRIC_INGRESS_FORWARDING_MPLS, |
| 71 | FabricConstants.FABRIC_INGRESS_FORWARDING_ROUTING_V4, |
| 72 | FabricConstants.FABRIC_INGRESS_FORWARDING_ROUTING_V6, |
| 73 | FabricConstants.FABRIC_INGRESS_FORWARDING_BRIDGING); |
| 74 | private static final Set<PiTableId> ACL_CTRL_TBLS = ImmutableSet.of( |
| 75 | FabricConstants.FABRIC_INGRESS_ACL_ACL); |
| 76 | private static final Set<PiTableId> NEXT_CTRL_TBLS = ImmutableSet.of( |
| 77 | FabricConstants.FABRIC_INGRESS_NEXT_NEXT_VLAN, |
| 78 | FabricConstants.FABRIC_INGRESS_NEXT_SIMPLE, |
Carmelo Cascone | 45cc086 | 2018-11-26 11:50:41 -0800 | [diff] [blame^] | 79 | FabricConstants.FABRIC_INGRESS_NEXT_HASHED, |
| 80 | FabricConstants.FABRIC_INGRESS_NEXT_XCONNECT); |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 81 | private static final Set<PiTableId> E_NEXT_CTRL_TBLS = ImmutableSet.of( |
| 82 | FabricConstants.FABRIC_EGRESS_EGRESS_NEXT_EGRESS_VLAN); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 83 | |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 84 | private static final ImmutableMap<Criterion.Type, PiMatchFieldId> CRITERION_MAP = |
| 85 | ImmutableMap.<Criterion.Type, PiMatchFieldId>builder() |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 86 | .put(Criterion.Type.IN_PORT, FabricConstants.HDR_IG_PORT) |
| 87 | .put(Criterion.Type.ETH_DST, FabricConstants.HDR_ETH_DST) |
| 88 | .put(Criterion.Type.ETH_SRC, FabricConstants.HDR_ETH_SRC) |
| 89 | .put(Criterion.Type.ETH_DST_MASKED, FabricConstants.HDR_ETH_DST) |
| 90 | .put(Criterion.Type.ETH_SRC_MASKED, FabricConstants.HDR_ETH_SRC) |
| 91 | .put(Criterion.Type.ETH_TYPE, FabricConstants.HDR_ETH_TYPE) |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 92 | .put(Criterion.Type.MPLS_LABEL, FabricConstants.HDR_MPLS_LABEL) |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 93 | .put(Criterion.Type.VLAN_VID, FabricConstants.HDR_VLAN_ID) |
| 94 | .put(Criterion.Type.IPV4_DST, FabricConstants.HDR_IPV4_DST) |
| 95 | .put(Criterion.Type.IPV4_SRC, FabricConstants.HDR_IPV4_SRC) |
| 96 | .put(Criterion.Type.IPV6_DST, FabricConstants.HDR_IPV6_DST) |
| 97 | .put(Criterion.Type.IP_PROTO, FabricConstants.HDR_IP_PROTO) |
| 98 | .put(Criterion.Type.ICMPV6_TYPE, FabricConstants.HDR_ICMP_TYPE) |
| 99 | .put(Criterion.Type.ICMPV6_CODE, FabricConstants.HDR_ICMP_CODE) |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 100 | .build(); |
| 101 | |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 102 | private static final ImmutableMap<PiMatchFieldId, Criterion.Type> INVERSE_CRITERION_MAP = |
| 103 | ImmutableMap.<PiMatchFieldId, Criterion.Type>builder() |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 104 | .put(FabricConstants.HDR_IG_PORT, Criterion.Type.IN_PORT) |
| 105 | .put(FabricConstants.HDR_ETH_DST, Criterion.Type.ETH_DST_MASKED) |
| 106 | .put(FabricConstants.HDR_ETH_SRC, Criterion.Type.ETH_SRC_MASKED) |
| 107 | .put(FabricConstants.HDR_ETH_TYPE, Criterion.Type.ETH_TYPE) |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 108 | .put(FabricConstants.HDR_MPLS_LABEL, Criterion.Type.MPLS_LABEL) |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 109 | .put(FabricConstants.HDR_VLAN_ID, Criterion.Type.VLAN_VID) |
| 110 | .put(FabricConstants.HDR_IPV4_DST, Criterion.Type.IPV4_DST) |
| 111 | .put(FabricConstants.HDR_IPV4_SRC, Criterion.Type.IPV4_SRC) |
| 112 | .put(FabricConstants.HDR_IPV6_DST, Criterion.Type.IPV6_DST) |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 113 | // FIXME: might be incorrect if we inverse the map.... |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 114 | .put(FabricConstants.HDR_L4_SPORT, Criterion.Type.UDP_SRC) |
| 115 | .put(FabricConstants.HDR_L4_DPORT, Criterion.Type.UDP_DST) |
| 116 | .put(FabricConstants.HDR_IP_PROTO, Criterion.Type.IP_PROTO) |
| 117 | .put(FabricConstants.HDR_ICMP_TYPE, Criterion.Type.ICMPV6_TYPE) |
| 118 | .put(FabricConstants.HDR_ICMP_CODE, Criterion.Type.ICMPV6_CODE) |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 119 | .build(); |
| 120 | |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 121 | private static final PiAction NOP = PiAction.builder() |
| 122 | .withId(FabricConstants.NOP).build(); |
Carmelo Cascone | 50d195f | 2018-09-11 13:26:38 -0700 | [diff] [blame] | 123 | |
| 124 | private static final ImmutableMap<PiTableId, PiAction> DEFAULT_ACTIONS = |
| 125 | ImmutableMap.<PiTableId, PiAction>builder() |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 126 | .put(FabricConstants.FABRIC_INGRESS_FORWARDING_ROUTING_V4, NOP) |
Carmelo Cascone | 50d195f | 2018-09-11 13:26:38 -0700 | [diff] [blame] | 127 | .build(); |
| 128 | |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 129 | @Override |
| 130 | public Optional<PiMatchFieldId> mapCriterionType(Criterion.Type type) { |
| 131 | return Optional.ofNullable(CRITERION_MAP.get(type)); |
| 132 | } |
| 133 | |
| 134 | @Override |
| 135 | public Optional<Criterion.Type> mapPiMatchFieldId(PiMatchFieldId fieldId) { |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 136 | return Optional.ofNullable(INVERSE_CRITERION_MAP.get(fieldId)); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | @Override |
| 140 | public Optional<PiTableId> mapFlowRuleTableId(int flowRuleTableId) { |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 141 | // The only use case for Index ID->PiTableId is when using the single |
| 142 | // table pipeliner. fabric.p4 is never used with such pipeliner. |
| 143 | return Optional.empty(); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | @Override |
| 147 | public Optional<Integer> mapPiTableId(PiTableId piTableId) { |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 148 | // The only use case for Index ID->PiTableId is when using the single |
| 149 | // table pipeliner. fabric.p4 is never used with such pipeliner. |
| 150 | return Optional.empty(); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 151 | } |
| 152 | |
| 153 | @Override |
| 154 | public PiAction mapTreatment(TrafficTreatment treatment, PiTableId piTableId) |
| 155 | throws PiInterpreterException { |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 156 | if (FILTERING_CTRL_TBLS.contains(piTableId)) { |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 157 | return FabricTreatmentInterpreter.mapFilteringTreatment(treatment, piTableId); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 158 | } else if (FORWARDING_CTRL_TBLS.contains(piTableId)) { |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 159 | return FabricTreatmentInterpreter.mapForwardingTreatment(treatment, piTableId); |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 160 | } else if (ACL_CTRL_TBLS.contains(piTableId)) { |
| 161 | return FabricTreatmentInterpreter.mapAclTreatment(treatment, piTableId); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 162 | } else if (NEXT_CTRL_TBLS.contains(piTableId)) { |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 163 | return FabricTreatmentInterpreter.mapNextTreatment(treatment, piTableId); |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 164 | } else if (E_NEXT_CTRL_TBLS.contains(piTableId)) { |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 165 | return FabricTreatmentInterpreter.mapEgressNextTreatment(treatment, piTableId); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 166 | } else { |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 167 | throw new PiInterpreterException(format( |
| 168 | "Treatment mapping not supported for table '%s'", piTableId)); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 169 | } |
| 170 | } |
| 171 | |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 172 | private PiPacketOperation createPiPacketOperation( |
| 173 | DeviceId deviceId, ByteBuffer data, long portNumber) |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 174 | throws PiInterpreterException { |
| 175 | PiControlMetadata metadata = createPacketMetadata(portNumber); |
| 176 | return PiPacketOperation.builder() |
| 177 | .forDevice(deviceId) |
| 178 | .withType(PACKET_OUT) |
| 179 | .withData(copyFrom(data)) |
| 180 | .withMetadatas(ImmutableList.of(metadata)) |
| 181 | .build(); |
| 182 | } |
| 183 | |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 184 | private PiControlMetadata createPacketMetadata(long portNumber) |
| 185 | throws PiInterpreterException { |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 186 | try { |
| 187 | return PiControlMetadata.builder() |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 188 | .withId(FabricConstants.EGRESS_PORT) |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame] | 189 | .withValue(copyFrom(portNumber).fit(PORT_BITWIDTH)) |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 190 | .build(); |
| 191 | } catch (ImmutableByteSequence.ByteSequenceTrimException e) { |
| 192 | throw new PiInterpreterException(format( |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 193 | "Port number '%d' too big, %s", portNumber, e.getMessage())); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 194 | } |
| 195 | } |
| 196 | |
| 197 | @Override |
| 198 | public Collection<PiPacketOperation> mapOutboundPacket(OutboundPacket packet) |
| 199 | throws PiInterpreterException { |
| 200 | DeviceId deviceId = packet.sendThrough(); |
| 201 | TrafficTreatment treatment = packet.treatment(); |
| 202 | |
| 203 | // fabric.p4 supports only OUTPUT instructions. |
| 204 | List<Instructions.OutputInstruction> outInstructions = treatment |
| 205 | .allInstructions() |
| 206 | .stream() |
| 207 | .filter(i -> i.type().equals(OUTPUT)) |
| 208 | .map(i -> (Instructions.OutputInstruction) i) |
| 209 | .collect(toList()); |
| 210 | |
| 211 | if (treatment.allInstructions().size() != outInstructions.size()) { |
| 212 | // There are other instructions that are not of type OUTPUT. |
| 213 | throw new PiInterpreterException("Treatment not supported: " + treatment); |
| 214 | } |
| 215 | |
| 216 | ImmutableList.Builder<PiPacketOperation> builder = ImmutableList.builder(); |
| 217 | for (Instructions.OutputInstruction outInst : outInstructions) { |
| 218 | if (outInst.port().isLogical() && !outInst.port().equals(FLOOD)) { |
| 219 | throw new PiInterpreterException(format( |
| 220 | "Output on logical port '%s' not supported", outInst.port())); |
| 221 | } else if (outInst.port().equals(FLOOD)) { |
| 222 | // Since fabric.p4 does not support flooding, we create a packet |
| 223 | // operation for each switch port. |
| 224 | final DeviceService deviceService = handler().get(DeviceService.class); |
| 225 | for (Port port : deviceService.getPorts(packet.sendThrough())) { |
| 226 | builder.add(createPiPacketOperation(deviceId, packet.data(), port.number().toLong())); |
| 227 | } |
| 228 | } else { |
| 229 | builder.add(createPiPacketOperation(deviceId, packet.data(), outInst.port().toLong())); |
| 230 | } |
| 231 | } |
| 232 | return builder.build(); |
| 233 | } |
| 234 | |
| 235 | @Override |
| 236 | public InboundPacket mapInboundPacket(PiPacketOperation packetIn) throws PiInterpreterException { |
| 237 | // Assuming that the packet is ethernet, which is fine since fabric.p4 |
| 238 | // can deparse only ethernet packets. |
| 239 | DeviceId deviceId = packetIn.deviceId(); |
| 240 | Ethernet ethPkt; |
| 241 | try { |
| 242 | ethPkt = Ethernet.deserializer().deserialize(packetIn.data().asArray(), 0, |
| 243 | packetIn.data().size()); |
| 244 | } catch (DeserializationException dex) { |
| 245 | throw new PiInterpreterException(dex.getMessage()); |
| 246 | } |
| 247 | |
| 248 | // Returns the ingress port packet metadata. |
| 249 | Optional<PiControlMetadata> packetMetadata = packetIn.metadatas() |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 250 | .stream().filter(m -> m.id().equals(FabricConstants.INGRESS_PORT)) |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 251 | .findFirst(); |
| 252 | |
| 253 | if (packetMetadata.isPresent()) { |
| 254 | ImmutableByteSequence portByteSequence = packetMetadata.get().value(); |
| 255 | short s = portByteSequence.asReadOnlyBuffer().getShort(); |
| 256 | ConnectPoint receivedFrom = new ConnectPoint(deviceId, PortNumber.portNumber(s)); |
| 257 | ByteBuffer rawData = ByteBuffer.wrap(packetIn.data().asArray()); |
| 258 | return new DefaultInboundPacket(receivedFrom, ethPkt, rawData); |
| 259 | } else { |
| 260 | throw new PiInterpreterException(format( |
| 261 | "Missing metadata '%s' in packet-in received from '%s': %s", |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 262 | FabricConstants.INGRESS_PORT, deviceId, packetIn)); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 263 | } |
| 264 | } |
Carmelo Cascone | 6880ba6 | 2018-09-06 00:04:34 -0700 | [diff] [blame] | 265 | |
| 266 | @Override |
Carmelo Cascone | 50d195f | 2018-09-11 13:26:38 -0700 | [diff] [blame] | 267 | public Optional<PiAction> getOriginalDefaultAction(PiTableId tableId) { |
| 268 | return Optional.ofNullable(DEFAULT_ACTIONS.get(tableId)); |
| 269 | } |
| 270 | |
| 271 | @Override |
Carmelo Cascone | 6880ba6 | 2018-09-06 00:04:34 -0700 | [diff] [blame] | 272 | public Optional<Integer> mapLogicalPortNumber(PortNumber port) { |
| 273 | if (!port.equals(CONTROLLER)) { |
| 274 | return Optional.empty(); |
| 275 | } |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 276 | return capabilities.cpuPort(); |
Carmelo Cascone | 6880ba6 | 2018-09-06 00:04:34 -0700 | [diff] [blame] | 277 | } |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 278 | } |