@@ -102,7 +102,7 @@ struct ofbundle {
102
102
* NULL if all VLANs are trunked. */
103
103
unsigned long * cvlans ;
104
104
struct lacp * lacp ; /* LACP if LACP is enabled, otherwise NULL. */
105
- struct bond * bond ; /* Nonnull iff more than one port. */
105
+ struct bond * bond ; /* Nonnull if more than one port. */
106
106
enum port_priority_tags_mode use_priority_tags ;
107
107
/* Use 802.1p tag for frames in VLAN 0? */
108
108
@@ -1508,7 +1508,7 @@ check_max_dp_hash_alg(struct dpif_backer *backer)
1508
1508
ofpbuf_use_stack (& key , & keybuf , sizeof keybuf );
1509
1509
odp_flow_key_from_flow (& odp_parms , & key );
1510
1510
1511
- /* All datapaths support algortithm 0 (OVS_HASH_ALG_L4). */
1511
+ /* All datapaths support algorithm 0 (OVS_HASH_ALG_L4). */
1512
1512
for (int alg = 1 ; alg < __OVS_HASH_MAX ; alg ++ ) {
1513
1513
struct ofpbuf actions ;
1514
1514
bool ok ;
@@ -3642,7 +3642,7 @@ bundle_set(struct ofproto *ofproto_, void *aux,
3642
3642
bundle -> bond = NULL ;
3643
3643
}
3644
3644
3645
- /* Set proteced port mode */
3645
+ /* Set protected port mode. */
3646
3646
if (s -> protected != bundle -> protected ) {
3647
3647
bundle -> protected = s -> protected ;
3648
3648
need_flush = true;
@@ -4609,7 +4609,7 @@ ofproto_dpif_credit_table_stats(struct ofproto_dpif *ofproto, uint8_t table_id,
4609
4609
4610
4610
/* Look up 'flow' in 'ofproto''s classifier version 'version', starting from
4611
4611
* table '*table_id'. Returns the rule that was found, which may be one of the
4612
- * special rules according to packet miss hadling . If 'may_packet_in' is
4612
+ * special rules according to packet miss handling . If 'may_packet_in' is
4613
4613
* false, returning of the miss_rule (which issues packet ins for the
4614
4614
* controller) is avoided. Updates 'wc', if nonnull, to reflect the fields
4615
4615
* that were used during the lookup.
@@ -6492,7 +6492,7 @@ struct dpif_support_field {
6492
6492
enum dpif_support_field_type type ;
6493
6493
};
6494
6494
6495
- #define DPIF_SUPPORT_FIELD_INTIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6495
+ #define DPIF_SUPPORT_FIELD_INITIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6496
6496
(struct dpif_support_field) {RT_PTR, BT_PTR, TITLE, TYPE}
6497
6497
6498
6498
static void
@@ -6558,26 +6558,26 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6558
6558
struct shash_node * node ;
6559
6559
bool changed = false;
6560
6560
6561
- #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6562
- {\
6563
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6564
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->NAME, \
6565
- &bt_support->NAME, \
6566
- TITLE, \
6567
- DPIF_SUPPORT_FIELD_##TYPE);\
6568
- shash_add_once(&all_fields, #NAME, f); \
6561
+ #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6562
+ { \
6563
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6564
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->NAME, \
6565
+ &bt_support->NAME, \
6566
+ TITLE, \
6567
+ DPIF_SUPPORT_FIELD_##TYPE); \
6568
+ shash_add_once(&all_fields, #NAME, f); \
6569
6569
}
6570
6570
DPIF_SUPPORT_FIELDS ;
6571
6571
#undef DPIF_SUPPORT_FIELD
6572
6572
6573
- #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6574
- {\
6575
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6576
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->odp.NAME, \
6577
- &bt_support->odp.NAME, \
6578
- TITLE, \
6579
- DPIF_SUPPORT_FIELD_##TYPE);\
6580
- shash_add_once(&all_fields, #NAME, f); \
6573
+ #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6574
+ { \
6575
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6576
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->odp.NAME, \
6577
+ &bt_support->odp.NAME, \
6578
+ TITLE, \
6579
+ DPIF_SUPPORT_FIELD_##TYPE); \
6580
+ shash_add_once(&all_fields, #NAME, f); \
6581
6581
}
6582
6582
ODP_SUPPORT_FIELDS ;
6583
6583
#undef ODP_SUPPORT_FIELD
@@ -6612,7 +6612,8 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6612
6612
* (bool * ) field -> rt_ptr = true;
6613
6613
changed = true;
6614
6614
} else {
6615
- ds_put_cstr (ds , "Can not enable features not supported by the datapth" );
6615
+ ds_put_cstr (ds ,
6616
+ "Can not enable features not supported by the datapath" );
6616
6617
}
6617
6618
} else if (!strcasecmp (value , "false" )) {
6618
6619
* (bool * )field -> rt_ptr = false;
0 commit comments