Skip to content

Commit

Permalink
net/hns3: fix some error logs
Browse files Browse the repository at this point in the history
[ upstream commit fdafdca875eafe36950542cbfbdb21b01b371081 ]

This patch fixes some error log.

Fixes: 62e3ccc ("net/hns3: support flow control")

Signed-off-by: Jie Hai <haijie1@huawei.com>
  • Loading branch information
Jie Hai authored and kevintraynor committed Nov 16, 2023
1 parent 6b71d32 commit 5c52c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_dcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ hns3_dcb_map_cfg(struct hns3_hw *hw)

ret = hns3_pg_to_pri_map(hw);
if (ret) {
hns3_err(hw, "pri_to_pg mapping fail: %d", ret);
hns3_err(hw, "pg_to_pri mapping fail: %d", ret);
return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ hns3_parse_sctp(const struct rte_flow_item *item, struct hns3_fdir_rule *rule,
return rte_flow_error_set(error, EINVAL,
RTE_FLOW_ERROR_TYPE_ITEM_MASK,
item,
"Only support src & dst port in SCTP");
"Only support src & dst port & v-tag in SCTP");
if (sctp_mask->hdr.src_port) {
hns3_set_bit(rule->input_set, INNER_SRC_PORT, 1);
rule->key_conf.mask.src_port =
Expand Down

0 comments on commit 5c52c7e

Please sign in to comment.