X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif.c;h=e50b4fe851e6e1cd58fd8697425f6293e36cb645;hb=56c091ec8cb20fb00f8af0e9a3f8b381ecaae03d;hp=5eea5ab60640c9b4b38f16d7e6cee3694bd1560b;hpb=b53d5c33bc91bdd2e46c67aec3af04a4dc020e26;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 5eea5ab60..e50b4fe85 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -948,9 +948,9 @@ open_dpif_backer(const char *type, struct dpif_backer **backerp) return error; } -/* Tests whether 'backer''s datapath supports recirculation Only newer datapath - * supports OVS_KEY_ATTR in OVS_ACTION_ATTR_USERSPACE actions. We need to - * disable some features on older datapaths that don't support this feature. +/* Tests whether 'backer''s datapath supports recirculation. Only newer + * datapaths support OVS_KEY_ATTR_RECIRC_ID in keys. We need to disable some + * features on older datapaths that don't support this feature. * * Returns false if 'backer' definitely does not support recirculation, true if * it seems to support recirculation or if at least the error we get is @@ -4514,6 +4514,13 @@ ofproto_dpif_unixctl_init(void) ofproto_unixctl_dpif_dump_flows, NULL); } +/* Returns true if 'table' is the table used for internal rules, + * false otherwise. */ +bool +table_is_internal(uint8_t table_id) +{ + return table_id == TBL_INTERNAL; +} /* Linux VLAN device support (e.g. "eth0.10" for VLAN 10.) *