@@ -100,7 +100,7 @@ struct ofbundle {
100
100
* NULL if all VLANs are trunked. */
101
101
unsigned long * cvlans ;
102
102
struct lacp * lacp ; /* LACP if LACP is enabled, otherwise NULL. */
103
- struct bond * bond ; /* Nonnull iff more than one port. */
103
+ struct bond * bond ; /* Nonnull if more than one port. */
104
104
enum port_priority_tags_mode use_priority_tags ;
105
105
/* Use 802.1p tag for frames in VLAN 0? */
106
106
@@ -1453,7 +1453,7 @@ check_max_dp_hash_alg(struct dpif_backer *backer)
1453
1453
ofpbuf_use_stack (& key , & keybuf , sizeof keybuf );
1454
1454
odp_flow_key_from_flow (& odp_parms , & key );
1455
1455
1456
- /* All datapaths support algortithm 0 (OVS_HASH_ALG_L4). */
1456
+ /* All datapaths support algorithm 0 (OVS_HASH_ALG_L4). */
1457
1457
for (int alg = 1 ; alg < __OVS_HASH_MAX ; alg ++ ) {
1458
1458
struct ofpbuf actions ;
1459
1459
bool ok ;
@@ -3466,7 +3466,7 @@ bundle_set(struct ofproto *ofproto_, void *aux,
3466
3466
bundle -> bond = NULL ;
3467
3467
}
3468
3468
3469
- /* Set proteced port mode */
3469
+ /* Set protected port mode. */
3470
3470
if (s -> protected != bundle -> protected ) {
3471
3471
bundle -> protected = s -> protected ;
3472
3472
need_flush = true;
@@ -4427,7 +4427,7 @@ ofproto_dpif_credit_table_stats(struct ofproto_dpif *ofproto, uint8_t table_id,
4427
4427
4428
4428
/* Look up 'flow' in 'ofproto''s classifier version 'version', starting from
4429
4429
* table '*table_id'. Returns the rule that was found, which may be one of the
4430
- * special rules according to packet miss hadling . If 'may_packet_in' is
4430
+ * special rules according to packet miss handling . If 'may_packet_in' is
4431
4431
* false, returning of the miss_rule (which issues packet ins for the
4432
4432
* controller) is avoided. Updates 'wc', if nonnull, to reflect the fields
4433
4433
* that were used during the lookup.
@@ -6242,7 +6242,7 @@ struct dpif_support_field {
6242
6242
enum dpif_support_field_type type ;
6243
6243
};
6244
6244
6245
- #define DPIF_SUPPORT_FIELD_INTIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6245
+ #define DPIF_SUPPORT_FIELD_INITIALIZER (RT_PTR , BT_PTR , TITLE , TYPE ) \
6246
6246
(struct dpif_support_field) {RT_PTR, BT_PTR, TITLE, TYPE}
6247
6247
6248
6248
static void
@@ -6297,26 +6297,26 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6297
6297
struct shash_node * node ;
6298
6298
bool changed = false;
6299
6299
6300
- #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6301
- {\
6302
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6303
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->NAME, \
6304
- &bt_support->NAME, \
6305
- TITLE, \
6306
- DPIF_SUPPORT_FIELD_##TYPE);\
6307
- shash_add_once(&all_fields, #NAME, f); \
6300
+ #define DPIF_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6301
+ { \
6302
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6303
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->NAME, \
6304
+ &bt_support->NAME, \
6305
+ TITLE, \
6306
+ DPIF_SUPPORT_FIELD_##TYPE); \
6307
+ shash_add_once(&all_fields, #NAME, f); \
6308
6308
}
6309
6309
DPIF_SUPPORT_FIELDS ;
6310
6310
#undef DPIF_SUPPORT_FIELD
6311
6311
6312
- #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6313
- {\
6314
- struct dpif_support_field *f = xmalloc(sizeof *f); \
6315
- *f = DPIF_SUPPORT_FIELD_INTIALIZER (&rt_support->odp.NAME, \
6316
- &bt_support->odp.NAME, \
6317
- TITLE, \
6318
- DPIF_SUPPORT_FIELD_##TYPE);\
6319
- shash_add_once(&all_fields, #NAME, f); \
6312
+ #define ODP_SUPPORT_FIELD (TYPE , NAME , TITLE ) \
6313
+ { \
6314
+ struct dpif_support_field *f = xmalloc(sizeof *f); \
6315
+ *f = DPIF_SUPPORT_FIELD_INITIALIZER (&rt_support->odp.NAME, \
6316
+ &bt_support->odp.NAME, \
6317
+ TITLE, \
6318
+ DPIF_SUPPORT_FIELD_##TYPE); \
6319
+ shash_add_once(&all_fields, #NAME, f); \
6320
6320
}
6321
6321
ODP_SUPPORT_FIELDS ;
6322
6322
#undef ODP_SUPPORT_FIELD
@@ -6346,7 +6346,8 @@ dpif_set_support(struct dpif_backer_support *rt_support,
6346
6346
* (bool * )field -> rt_ptr = true;
6347
6347
changed = true;
6348
6348
} else {
6349
- ds_put_cstr (ds , "Can not enable features not supported by the datapth" );
6349
+ ds_put_cstr (ds ,
6350
+ "Can not enable features not supported by the datapath" );
6350
6351
}
6351
6352
} else if (!strcasecmp (value , "false" )) {
6352
6353
* (bool * )field -> rt_ptr = false;
0 commit comments