mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
ofproto-dpif: Fix spelling in comments and the support field macro.
Acked-by: Simon Horman <horms@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
parent
f141b7c352
commit
ba675897e4
@ -102,7 +102,7 @@ struct ofbundle {
|
|||||||
* NULL if all VLANs are trunked. */
|
* NULL if all VLANs are trunked. */
|
||||||
unsigned long *cvlans;
|
unsigned long *cvlans;
|
||||||
struct lacp *lacp; /* LACP if LACP is enabled, otherwise NULL. */
|
struct lacp *lacp; /* LACP if LACP is enabled, otherwise NULL. */
|
||||||
struct bond *bond; /* Nonnull iff more than one port. */
|
struct bond *bond; /* Nonnull if more than one port. */
|
||||||
enum port_priority_tags_mode use_priority_tags;
|
enum port_priority_tags_mode use_priority_tags;
|
||||||
/* Use 802.1p tag for frames in VLAN 0? */
|
/* Use 802.1p tag for frames in VLAN 0? */
|
||||||
|
|
||||||
@ -1508,7 +1508,7 @@ check_max_dp_hash_alg(struct dpif_backer *backer)
|
|||||||
ofpbuf_use_stack(&key, &keybuf, sizeof keybuf);
|
ofpbuf_use_stack(&key, &keybuf, sizeof keybuf);
|
||||||
odp_flow_key_from_flow(&odp_parms, &key);
|
odp_flow_key_from_flow(&odp_parms, &key);
|
||||||
|
|
||||||
/* All datapaths support algortithm 0 (OVS_HASH_ALG_L4). */
|
/* All datapaths support algorithm 0 (OVS_HASH_ALG_L4). */
|
||||||
for (int alg = 1; alg < __OVS_HASH_MAX; alg++) {
|
for (int alg = 1; alg < __OVS_HASH_MAX; alg++) {
|
||||||
struct ofpbuf actions;
|
struct ofpbuf actions;
|
||||||
bool ok;
|
bool ok;
|
||||||
@ -3642,7 +3642,7 @@ bundle_set(struct ofproto *ofproto_, void *aux,
|
|||||||
bundle->bond = NULL;
|
bundle->bond = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set proteced port mode */
|
/* Set protected port mode. */
|
||||||
if (s->protected != bundle->protected) {
|
if (s->protected != bundle->protected) {
|
||||||
bundle->protected = s->protected;
|
bundle->protected = s->protected;
|
||||||
need_flush = true;
|
need_flush = true;
|
||||||
@ -4609,7 +4609,7 @@ ofproto_dpif_credit_table_stats(struct ofproto_dpif *ofproto, uint8_t table_id,
|
|||||||
|
|
||||||
/* Look up 'flow' in 'ofproto''s classifier version 'version', starting from
|
/* Look up 'flow' in 'ofproto''s classifier version 'version', starting from
|
||||||
* table '*table_id'. Returns the rule that was found, which may be one of the
|
* table '*table_id'. Returns the rule that was found, which may be one of the
|
||||||
* special rules according to packet miss hadling. If 'may_packet_in' is
|
* special rules according to packet miss handling. If 'may_packet_in' is
|
||||||
* false, returning of the miss_rule (which issues packet ins for the
|
* false, returning of the miss_rule (which issues packet ins for the
|
||||||
* controller) is avoided. Updates 'wc', if nonnull, to reflect the fields
|
* controller) is avoided. Updates 'wc', if nonnull, to reflect the fields
|
||||||
* that were used during the lookup.
|
* that were used during the lookup.
|
||||||
@ -6550,7 +6550,7 @@ struct dpif_support_field {
|
|||||||
enum dpif_support_field_type type;
|
enum dpif_support_field_type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DPIF_SUPPORT_FIELD_INTIALIZER(RT_PTR, BT_PTR, TITLE, TYPE) \
|
#define DPIF_SUPPORT_FIELD_INITIALIZER(RT_PTR, BT_PTR, TITLE, TYPE) \
|
||||||
(struct dpif_support_field) {RT_PTR, BT_PTR, TITLE, TYPE}
|
(struct dpif_support_field) {RT_PTR, BT_PTR, TITLE, TYPE}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -6616,26 +6616,26 @@ dpif_set_support(struct dpif_backer_support *rt_support,
|
|||||||
struct shash_node *node;
|
struct shash_node *node;
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
|
||||||
#define DPIF_SUPPORT_FIELD(TYPE, NAME, TITLE) \
|
#define DPIF_SUPPORT_FIELD(TYPE, NAME, TITLE) \
|
||||||
{\
|
{ \
|
||||||
struct dpif_support_field *f = xmalloc(sizeof *f); \
|
struct dpif_support_field *f = xmalloc(sizeof *f); \
|
||||||
*f = DPIF_SUPPORT_FIELD_INTIALIZER(&rt_support->NAME, \
|
*f = DPIF_SUPPORT_FIELD_INITIALIZER(&rt_support->NAME, \
|
||||||
&bt_support->NAME, \
|
&bt_support->NAME, \
|
||||||
TITLE, \
|
TITLE, \
|
||||||
DPIF_SUPPORT_FIELD_##TYPE);\
|
DPIF_SUPPORT_FIELD_##TYPE); \
|
||||||
shash_add_once(&all_fields, #NAME, f); \
|
shash_add_once(&all_fields, #NAME, f); \
|
||||||
}
|
}
|
||||||
DPIF_SUPPORT_FIELDS;
|
DPIF_SUPPORT_FIELDS;
|
||||||
#undef DPIF_SUPPORT_FIELD
|
#undef DPIF_SUPPORT_FIELD
|
||||||
|
|
||||||
#define ODP_SUPPORT_FIELD(TYPE, NAME, TITLE) \
|
#define ODP_SUPPORT_FIELD(TYPE, NAME, TITLE) \
|
||||||
{\
|
{ \
|
||||||
struct dpif_support_field *f = xmalloc(sizeof *f); \
|
struct dpif_support_field *f = xmalloc(sizeof *f); \
|
||||||
*f = DPIF_SUPPORT_FIELD_INTIALIZER(&rt_support->odp.NAME, \
|
*f = DPIF_SUPPORT_FIELD_INITIALIZER(&rt_support->odp.NAME, \
|
||||||
&bt_support->odp.NAME, \
|
&bt_support->odp.NAME, \
|
||||||
TITLE, \
|
TITLE, \
|
||||||
DPIF_SUPPORT_FIELD_##TYPE);\
|
DPIF_SUPPORT_FIELD_##TYPE); \
|
||||||
shash_add_once(&all_fields, #NAME, f); \
|
shash_add_once(&all_fields, #NAME, f); \
|
||||||
}
|
}
|
||||||
ODP_SUPPORT_FIELDS;
|
ODP_SUPPORT_FIELDS;
|
||||||
#undef ODP_SUPPORT_FIELD
|
#undef ODP_SUPPORT_FIELD
|
||||||
@ -6670,7 +6670,8 @@ dpif_set_support(struct dpif_backer_support *rt_support,
|
|||||||
*(bool *) field->rt_ptr = true;
|
*(bool *) field->rt_ptr = true;
|
||||||
changed = true;
|
changed = true;
|
||||||
} else {
|
} else {
|
||||||
ds_put_cstr(ds, "Can not enable features not supported by the datapth");
|
ds_put_cstr(ds,
|
||||||
|
"Can not enable features not supported by the datapath");
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(value, "false")) {
|
} else if (!strcasecmp(value, "false")) {
|
||||||
*(bool *)field->rt_ptr = false;
|
*(bool *)field->rt_ptr = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user