mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
odp-util: Make slow_path_reasons mutually exclusive.
It's no longer possible for a single datapath flow to be slow pathed for two different reasons. This patch updates the code to reflect this fact (marginally simplifying it). Signed-off-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -174,12 +174,12 @@ void odp_put_skb_mark_action(const uint32_t skb_mark,
|
||||
|
||||
/* Reasons why a subfacet might not be fast-pathable. */
|
||||
enum slow_path_reason {
|
||||
/* These reasons are mutually exclusive. */
|
||||
SLOW_CFM = 1 << 0, /* CFM packets need per-packet processing. */
|
||||
SLOW_LACP = 1 << 1, /* LACP packets need per-packet processing. */
|
||||
SLOW_STP = 1 << 2, /* STP packets need per-packet processing. */
|
||||
SLOW_BFD = 1 << 3, /* BFD packets need per-packet processing. */
|
||||
SLOW_CONTROLLER = 1 << 4, /* Packets must go to OpenFlow controller. */
|
||||
SLOW_CFM = 1, /* CFM packets need per-packet processing. */
|
||||
SLOW_LACP, /* LACP packets need per-packet processing. */
|
||||
SLOW_STP, /* STP packets need per-packet processing. */
|
||||
SLOW_BFD, /* BFD packets need per-packet processing. */
|
||||
SLOW_CONTROLLER, /* Packets must go to OpenFlow controller. */
|
||||
__SLOW_MAX
|
||||
};
|
||||
|
||||
#endif /* odp-util.h */
|
||||
|
Reference in New Issue
Block a user