@@ -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.
@@ -6550,7 +6550,7 @@ struct dpif_support_field {
6550
6550
enum dpif_support_field_type type ;
6551
6551
};
6552
6552
6553
- #define DPIF_SUPPORT_FIELD_INTIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6553
+ #define DPIF_SUPPORT_FIELD_INITIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6554
6554
(struct dpif_support_field) {RT_PTR, BT_PTR, TITLE, TYPE}
6555
6555
6556
6556
static void
@@ -6616,26 +6616,26 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6616
6616
struct shash_node * node ;
6617
6617
bool changed = false;
6618
6618
6619
- #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6620
- {\
6621
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6622
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->NAME, \
6623
- &bt_support->NAME, \
6624
- TITLE, \
6625
- DPIF_SUPPORT_FIELD_##TYPE);\
6626
- shash_add_once(&all_fields, #NAME, f); \
6619
+ #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6620
+ { \
6621
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6622
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->NAME, \
6623
+ &bt_support->NAME, \
6624
+ TITLE, \
6625
+ DPIF_SUPPORT_FIELD_##TYPE); \
6626
+ shash_add_once(&all_fields, #NAME, f); \
6627
6627
}
6628
6628
DPIF_SUPPORT_FIELDS ;
6629
6629
#undef DPIF_SUPPORT_FIELD
6630
6630
6631
- #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6632
- {\
6633
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6634
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->odp.NAME, \
6635
- &bt_support->odp.NAME, \
6636
- TITLE, \
6637
- DPIF_SUPPORT_FIELD_##TYPE);\
6638
- shash_add_once(&all_fields, #NAME, f); \
6631
+ #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6632
+ { \
6633
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6634
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->odp.NAME, \
6635
+ &bt_support->odp.NAME, \
6636
+ TITLE, \
6637
+ DPIF_SUPPORT_FIELD_##TYPE); \
6638
+ shash_add_once(&all_fields, #NAME, f); \
6639
6639
}
6640
6640
ODP_SUPPORT_FIELDS ;
6641
6641
#undef ODP_SUPPORT_FIELD
@@ -6670,7 +6670,8 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6670
6670
* (bool * ) field -> rt_ptr = true;
6671
6671
changed = true;
6672
6672
} else {
6673
- ds_put_cstr (ds , "Can not enable features not supported by the datapth" );
6673
+ ds_put_cstr (ds ,
6674
+ "Can not enable features not supported by the datapath" );
6674
6675
}
6675
6676
} else if (!strcasecmp (value , "false" )) {
6676
6677
* (bool * )field -> rt_ptr = false;
0 commit comments