Currently, when using PF_RING, broctl chooses the PF_RING
cluster type by setting the environment variable
PCAP_PF_RING_USE_CLUSTER_PER_FLOW. In order to use a
different cluster type, we would need to set a different
environment variable (the PF_RING-aware libpcap does not
look at the actual value of the environment variable,
just whether the variable is defined or not), but there is
no option in broctl to do this.
To address this issue, a new broctl option PFRINGClusterType
can be added, then a user could change the value of this
option to choose a different PF_RING cluster type (and the
broctl pf_ring plugin would set the appropriate env. variable).
The allowed values of this new broctl option would be:
"2-tuple", "4-tuple", "5-tuple", "tcp-5-tuple", "round-robin",
or "6-tuple" (this one corresponds to the current
cluster type used by broctl). By default, PFRINGClusterType
would be set to "6-tuple".
Any opinions on whether we should keep the same default
cluster type (6-tuple) as before, or change it to something
Let's change the default to 4-tuple.
In branch topic/dnthayer/ticket1108, I've added a new broctl option "PFRINGClusterType",
changed the default cluster type to "4-tuple", added tests, and updated
existing test baselines.