WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #29: new file mode 100644 WARNING: line length of 86 exceeds 80 columns #51: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:18: +static const char *hws_matcher_rtc_type_to_str(enum mlx5hws_matcher_rtc_type rtc_type) WARNING: line length of 82 exceeds 80 columns #69: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:36: + /* For small rule tables we use a single deep table to assure insertion */ WARNING: line length of 88 exceeds 80 columns #83: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:50: + ret = mlx5hws_table_create_default_ft(tbl->ctx->mdev, tbl, &matcher->end_ft_id); WARNING: line length of 91 exceeds 80 columns #135: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:102: + ret = mlx5hws_table_connect_to_miss_table(tbl, tbl->default_miss.miss_tbl); WARNING: line length of 93 exceeds 80 columns #154: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:121: + ret = mlx5hws_table_ft_set_default_next_ft(tbl, prev ? prev->end_ft_id : tbl->ft_id); WARNING: line length of 91 exceeds 80 columns #205: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:172: + ret = mlx5hws_table_connect_to_miss_table(tbl, tbl->default_miss.miss_tbl); WARNING: line length of 85 exceeds 80 columns #240: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:207: + struct mlx5hws_cmd_rtc_create_attr *rtc_attr, WARNING: line length of 94 exceeds 80 columns #244: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:211: + struct mlx5hws_pool_chunk *ste = &matcher->action_ste[MLX5HWS_ACTION_STE_IDX_ANY].ste; WARNING: line length of 81 exceeds 80 columns #245: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:212: + enum mlx5hws_matcher_flow_src flow_src = matcher->attr.optimize_flow_src; WARNING: line length of 96 exceeds 80 columns #255: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:222: + rtc_attr->log_size = is_match_rtc ? matcher->attr.table.sz_row_log : ste->order; WARNING: line length of 88 exceeds 80 columns #256: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:223: + rtc_attr->log_depth = is_match_rtc ? matcher->attr.table.sz_col_log : 0; WARNING: line length of 90 exceeds 80 columns #293: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:260: + rtc_attr.update_index_mode = MLX5_IFC_RTC_STE_UPDATE_MODE_BY_HASH; WARNING: line length of 83 exceeds 80 columns #295: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:262: + /* The first mt is used since all share the same definer */ WARNING: line length of 87 exceeds 80 columns #296: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:263: + rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); WARNING: line length of 82 exceeds 80 columns #297: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:264: + } else if (attr->insert_mode == MLX5HWS_MATCHER_INSERT_BY_INDEX) { WARNING: line length of 92 exceeds 80 columns #298: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:265: + rtc_attr.update_index_mode = MLX5_IFC_RTC_STE_UPDATE_MODE_BY_OFFSET; WARNING: line length of 90 exceeds 80 columns #301: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:268: + if (attr->distribute_mode == MLX5HWS_MATCHER_DISTRIBUTE_BY_HASH) { WARNING: line length of 98 exceeds 80 columns #303: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:270: + rtc_attr.access_index_mode = MLX5_IFC_RTC_STE_ACCESS_MODE_BY_HASH; WARNING: line length of 95 exceeds 80 columns #304: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:271: + rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); WARNING: line length of 99 exceeds 80 columns #305: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:272: + } else if (attr->distribute_mode == MLX5HWS_MATCHER_DISTRIBUTE_BY_LINEAR) { WARNING: line length of 97 exceeds 80 columns #307: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:274: + rtc_attr.access_index_mode = MLX5_IFC_RTC_STE_ACCESS_MODE_LINEAR; WARNING: line length of 91 exceeds 80 columns #308: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:275: + rtc_attr.match_definer_0 = ctx->caps->linear_match_definer; WARNING: line length of 84 exceeds 80 columns #332: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:299: + rtc_attr.update_index_mode = MLX5_IFC_RTC_STE_UPDATE_MODE_BY_OFFSET; WARNING: line length of 81 exceeds 80 columns #350: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:317: + rtc_attr.table_type = mlx5hws_table_get_res_fw_ft_type(tbl->type, false); WARNING: line length of 85 exceeds 80 columns #356: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:323: + obj_id = mlx5hws_pool_chunk_get_base_id(stc_pool, &default_stc->default_hit); WARNING: line length of 88 exceeds 80 columns #369: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:336: + rtc_attr.table_type = mlx5hws_table_get_res_fw_ft_type(tbl->type, true); WARNING: line length of 100 exceeds 80 columns #371: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:338: + obj_id = mlx5hws_pool_chunk_get_base_mirror_id(stc_pool, &default_stc->default_hit); WARNING: line length of 88 exceeds 80 columns #441: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:408: + if (attr->table.sz_col_log + attr->table.sz_row_log > caps->ste_alloc_log_max) { WARNING: line length of 89 exceeds 80 columns #447: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:414: + if (attr->table.sz_col_log + attr->table.sz_row_log < caps->ste_alloc_log_gran) { WARNING: line length of 89 exceeds 80 columns #478: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:445: + valid = mlx5hws_action_check_combo(ctx, at->action_type_arr, matcher->tbl->type); WARNING: line length of 93 exceeds 80 columns #502: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:469: + resize_data->max_stes = src_matcher->action_ste[MLX5HWS_ACTION_STE_IDX_ANY].max_stes; WARNING: line length of 82 exceeds 80 columns #505: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:472: + resize_data->action_ste[0].rtc_0_id = src_matcher->action_ste[0].rtc_0_id; WARNING: line length of 82 exceeds 80 columns #506: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:473: + resize_data->action_ste[0].rtc_1_id = src_matcher->action_ste[0].rtc_1_id; WARNING: line length of 82 exceeds 80 columns #511: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:478: + resize_data->action_ste[1].rtc_0_id = src_matcher->action_ste[1].rtc_0_id; WARNING: line length of 82 exceeds 80 columns #512: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:479: + resize_data->action_ste[1].rtc_1_id = src_matcher->action_ste[1].rtc_1_id; WARNING: line length of 81 exceeds 80 columns #518: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:485: + list_add(&resize_data->list_node, &src_matcher->resize_dst->resize_data); WARNING: line length of 82 exceeds 80 columns #523: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:490: + struct mlx5hws_matcher_resize_data, WARNING: line length of 89 exceeds 80 columns #526: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:493: + list_add(&resize_data->list_node, &src_matcher->resize_dst->resize_data); WARNING: line length of 82 exceeds 80 columns #541: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:508: + struct mlx5hws_matcher_resize_data, WARNING: line length of 88 exceeds 80 columns #548: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:515: + &resize_data->action_ste[1].stc); WARNING: line length of 88 exceeds 80 columns #551: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:518: + &resize_data->action_ste[0].stc); WARNING: line length of 93 exceeds 80 columns #555: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:522: + resize_data->action_ste[1].rtc_1_id); WARNING: line length of 93 exceeds 80 columns #557: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:524: + resize_data->action_ste[0].rtc_1_id); WARNING: line length of 85 exceeds 80 columns #560: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:527: + resize_data->action_ste[1].rtc_0_id); WARNING: line length of 85 exceeds 80 columns #562: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:529: + resize_data->action_ste[0].rtc_0_id); WARNING: line length of 87 exceeds 80 columns #563: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:530: + if (resize_data->action_ste[MLX5HWS_ACTION_STE_IDX_ANY].pool) { WARNING: line length of 86 exceeds 80 columns #564: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:531: + mlx5hws_pool_destroy(resize_data->action_ste[1].pool); WARNING: line length of 86 exceeds 80 columns #565: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:532: + mlx5hws_pool_destroy(resize_data->action_ste[0].pool); WARNING: line length of 82 exceeds 80 columns #589: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:556: + pool_attr.alloc_log_sz = ilog2(roundup_pow_of_two(action_ste->max_stes)) + WARNING: line length of 99 exceeds 80 columns #599: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:566: + ret = hws_matcher_create_rtc(matcher, HWS_MATCHER_RTC_TYPE_STE_ARRAY, action_ste_selector); WARNING: line length of 94 exceeds 80 columns #623: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:590: + hws_matcher_destroy_rtc(matcher, HWS_MATCHER_RTC_TYPE_STE_ARRAY, action_ste_selector); WARNING: line length of 94 exceeds 80 columns #629: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:596: +static void hws_matcher_unbind_at_idx(struct mlx5hws_matcher *matcher, u8 action_ste_selector) WARNING: line length of 94 exceeds 80 columns #642: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:609: + hws_matcher_destroy_rtc(matcher, HWS_MATCHER_RTC_TYPE_STE_ARRAY, action_ste_selector); WARNING: line length of 86 exceeds 80 columns #667: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:634: + required_stes = at->num_of_action_stes - (!is_jumbo || at->only_term); WARNING: line length of 90 exceeds 80 columns #756: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:723: + if (matcher->attr.distribute_mode != MLX5HWS_MATCHER_DISTRIBUTE_BY_HASH) { WARNING: line length of 82 exceeds 80 columns #768: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:735: + if (attr->distribute_mode == MLX5HWS_MATCHER_DISTRIBUTE_BY_HASH) { WARNING: line length of 91 exceeds 80 columns #774: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:741: + } else if (attr->distribute_mode == MLX5HWS_MATCHER_DISTRIBUTE_BY_LINEAR) { WARNING: line length of 94 exceeds 80 columns #783: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:750: + if (attr->table.sz_row_log > MLX5_IFC_RTC_LINEAR_LOOKUP_TBL_LOG_MAX) { WARNING: line length of 84 exceeds 80 columns #785: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:752: + MLX5_IFC_RTC_LINEAR_LOOKUP_TBL_LOG_MAX); WARNING: line length of 87 exceeds 80 columns #811: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:778: + if (matcher->tbl->type != MLX5HWS_TABLE_TYPE_FDB && attr->optimize_flow_src) { WARNING: line length of 92 exceeds 80 columns #819: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:786: + attr->table.sz_col_log = hws_matcher_rules_to_tbl_depth(attr->rule.num_log); WARNING: line length of 83 exceeds 80 columns #909: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:876: + col_matcher->attr.table.sz_col_log = MLX5HWS_MATCHER_ASSURED_COL_TBL_DEPTH; WARNING: line length of 83 exceeds 80 columns #910: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:877: + if (col_matcher->attr.table.sz_row_log > MLX5HWS_MATCHER_ASSURED_ROW_RATIO) WARNING: line length of 88 exceeds 80 columns #911: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:878: + col_matcher->attr.table.sz_row_log -= MLX5HWS_MATCHER_ASSURED_ROW_RATIO; WARNING: line length of 84 exceeds 80 columns #913: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:880: + col_matcher->attr.max_num_of_at_attach = matcher->attr.max_num_of_at_attach; WARNING: line length of 87 exceeds 80 columns #1006: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:973: + if (matcher->action_ste[MLX5HWS_ACTION_STE_IDX_ANY].max_stes < required_stes) { WARNING: line length of 86 exceeds 80 columns #1009: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:976: + matcher->action_ste[MLX5HWS_ACTION_STE_IDX_ANY].max_stes); WARNING: line length of 81 exceeds 80 columns #1137: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.c:1104: + mt->match_param = kzalloc(MLX5_ST_SZ_BYTES(fte_match_param), GFP_KERNEL); WARNING: line length of 84 exceeds 80 columns #1357: FILE: drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_matcher.h:102: +static inline bool mlx5hws_matcher_is_insert_by_idx(struct mlx5hws_matcher *matcher) total: 0 errors, 70 warnings, 0 checks, 1323 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit b8dc24faeea8 ("net/mlx5: HWS, added matchers functionality") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 70 warnings, 0 checks, 1323 lines checked