git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: add RSS hash offload to capabilities
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_dcb.c
diff --git
a/drivers/net/hns3/hns3_dcb.c
b/drivers/net/hns3/hns3_dcb.c
index
8688de2
..
3fde222
100644
(file)
--- a/
drivers/net/hns3/hns3_dcb.c
+++ b/
drivers/net/hns3/hns3_dcb.c
@@
-749,12
+749,10
@@
hns3_dcb_schd_mode_cfg(struct hns3_hw *hw)
}
ret = hns3_dcb_lvl34_schd_mode_cfg(hw);
}
ret = hns3_dcb_lvl34_schd_mode_cfg(hw);
- if (ret)
{
+ if (ret)
hns3_err(hw, "config lvl34_schd_mode failed: %d", ret);
hns3_err(hw, "config lvl34_schd_mode failed: %d", ret);
- return ret;
- }
- return
0
;
+ return
ret
;
}
static int
}
static int
@@
-845,12
+843,10
@@
hns3_dcb_dwrr_cfg(struct hns3_hw *hw)
}
ret = hns3_dcb_pri_dwrr_cfg(hw);
}
ret = hns3_dcb_pri_dwrr_cfg(hw);
- if (ret)
{
+ if (ret)
hns3_err(hw, "config pri_dwrr failed: %d", ret);
hns3_err(hw, "config pri_dwrr failed: %d", ret);
- return ret;
- }
- return
0
;
+ return
ret
;
}
static int
}
static int
@@
-932,12
+928,10
@@
hns3_pri_q_qs_cfg(struct hns3_hw *hw)
/* Cfg q -> qs mapping */
ret = hns3_q_to_qs_map(hw);
/* Cfg q -> qs mapping */
ret = hns3_q_to_qs_map(hw);
- if (ret)
{
+ if (ret)
hns3_err(hw, "nq_to_qs mapping fail: %d", ret);
hns3_err(hw, "nq_to_qs mapping fail: %d", ret);
- return ret;
- }
- return
0
;
+ return
ret
;
}
static int
}
static int
@@
-1552,12
+1546,10
@@
hns3_update_queue_map_configure(struct hns3_adapter *hns)
hns3_dcb_update_tc_queue_mapping(hw, nb_rx_q, nb_tx_q);
ret = hns3_q_to_qs_map(hw);
hns3_dcb_update_tc_queue_mapping(hw, nb_rx_q, nb_tx_q);
ret = hns3_q_to_qs_map(hw);
- if (ret)
{
+ if (ret)
hns3_err(hw, "failed to map nq to qs! ret = %d", ret);
hns3_err(hw, "failed to map nq to qs! ret = %d", ret);
- return ret;
- }
- return
0
;
+ return
ret
;
}
int
}
int
@@
-1569,10
+1561,8
@@
hns3_dcb_cfg_update(struct hns3_adapter *hns)
if ((uint32_t)mq_mode & ETH_MQ_RX_DCB_FLAG) {
ret = hns3_dcb_configure(hns);
if ((uint32_t)mq_mode & ETH_MQ_RX_DCB_FLAG) {
ret = hns3_dcb_configure(hns);
- if (ret)
{
+ if (ret)
hns3_err(hw, "Failed to config dcb: %d", ret);
hns3_err(hw, "Failed to config dcb: %d", ret);
- return ret;
- }
} else {
/*
* Update queue map without PFC configuration,
} else {
/*
* Update queue map without PFC configuration,