Hi Ben, As we know, NXAST_RAW_SAMPLE2 was introduced to OVS to make flow-based IPFIX to support tunnel information exporting. A field called “sampling_port” is added in NXAST_RAW_SAMPLE2 and it’s an ofp-port. This field is not only used for exporting tunnel information, but also used for judging the flow direction.
However, recently I found NXAST_RAW_SAMPLE2 cannot be used for patch port, because there is no odp-port for a patch port. The conversion between NXAST_RAW_SAMPLE2 and datapath sample action will fail. The simple solution about this problem is that we can use NXAST_RAW_SAMPLE openflow action instead of NXAST_RAW_SAMPLE2. But the limitation is that NXAST_RAW_SAMPLE action didn’t have a field to imply the flow direction. According to our discuss, a better solution is that adding NXAST_RAW_SAMPLE3, which have a direction field to show the flow direction. This sample action will looks like sample(…, ingress| egress). If there is anything I missed, please correct me. Thanks, Daniel _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
