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/qede: fix default config option
[dpdk.git]
/
drivers
/
net
/
qede
/
qede_ethdev.c
diff --git
a/drivers/net/qede/qede_ethdev.c
b/drivers/net/qede/qede_ethdev.c
index
7a589a2
..
6f5ba2a
100644
(file)
--- a/
drivers/net/qede/qede_ethdev.c
+++ b/
drivers/net/qede/qede_ethdev.c
@@
-457,6
+457,7
@@
int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg)
if (IS_VF(edev)) {
params.update_tx_switching_flg = 1;
params.tx_switching_flg = !flg;
if (IS_VF(edev)) {
params.update_tx_switching_flg = 1;
params.tx_switching_flg = !flg;
+ DP_INFO(edev, "VF tx-switching is disabled\n");
}
#endif
for_each_hwfn(edev, i) {
}
#endif
for_each_hwfn(edev, i) {
@@
-469,8
+470,8
@@
int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg)
break;
}
}
break;
}
}
- DP_INFO(edev, "vport
%s VF tx-switch %s\n", flg ? "activated" : "deactivated",
- params.tx_switching_flg ? "enabled" : "disabled");
+ DP_INFO(edev, "vport
is %s\n", flg ? "activated" : "deactivated");
+
return rc;
}
return rc;
}
@@
-631,7
+632,13
@@
qede_vxlan_enable(struct rte_eth_dev *eth_dev, uint8_t clss,
for_each_hwfn(edev, i) {
p_hwfn = &edev->hwfns[i];
for_each_hwfn(edev, i) {
p_hwfn = &edev->hwfns[i];
- p_ptt = IS_PF(edev) ? ecore_ptt_acquire(p_hwfn) : NULL;
+ if (IS_PF(edev)) {
+ p_ptt = ecore_ptt_acquire(p_hwfn);
+ if (!p_ptt)
+ return -EAGAIN;
+ } else {
+ p_ptt = NULL;
+ }
rc = ecore_sp_pf_update_tunn_cfg(p_hwfn, p_ptt,
&tunn, ECORE_SPQ_MODE_CB, NULL);
if (rc != ECORE_SUCCESS) {
rc = ecore_sp_pf_update_tunn_cfg(p_hwfn, p_ptt,
&tunn, ECORE_SPQ_MODE_CB, NULL);
if (rc != ECORE_SUCCESS) {
@@
-2258,7
+2265,13
@@
qede_conf_udp_dst_port(struct rte_eth_dev *eth_dev,
tunn.vxlan_port.port = udp_port;
for_each_hwfn(edev, i) {
p_hwfn = &edev->hwfns[i];
tunn.vxlan_port.port = udp_port;
for_each_hwfn(edev, i) {
p_hwfn = &edev->hwfns[i];
- p_ptt = IS_PF(edev) ? ecore_ptt_acquire(p_hwfn) : NULL;
+ if (IS_PF(edev)) {
+ p_ptt = ecore_ptt_acquire(p_hwfn);
+ if (!p_ptt)
+ return -EAGAIN;
+ } else {
+ p_ptt = NULL;
+ }
rc = ecore_sp_pf_update_tunn_cfg(p_hwfn, p_ptt, &tunn,
ECORE_SPQ_MODE_CB, NULL);
if (rc != ECORE_SUCCESS) {
rc = ecore_sp_pf_update_tunn_cfg(p_hwfn, p_ptt, &tunn,
ECORE_SPQ_MODE_CB, NULL);
if (rc != ECORE_SUCCESS) {