git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8213db1
)
net/ice/base: add condition to copy module info into memory
author
Qi Zhang
<qi.z.zhang@intel.com>
Tue, 15 Dec 2020 03:29:46 +0000
(11:29 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000
(16:03 +0100)
There is added condition,to copy information about used module into
memory
Signed-off-by: Szymon T Cudzilo <szymon.t.cudzilo@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/ice/base/ice_common.c
b/drivers/net/ice/base/ice_common.c
index
b217ae6
..
ca764b2
100644
(file)
--- a/
drivers/net/ice/base/ice_common.c
+++ b/
drivers/net/ice/base/ice_common.c
@@
-2652,6
+2652,11
@@
enum ice_status ice_update_link_info(struct ice_port_info *pi)
status = ice_aq_get_phy_caps(pi, false, ICE_AQC_REPORT_TOPO_CAP,
pcaps, NULL);
+ if (status == ICE_SUCCESS)
+ ice_memcpy(li->module_type, &pcaps->module_type,
+ sizeof(li->module_type),
+ ICE_NONDMA_TO_NONDMA);
+
ice_free(hw, pcaps);
}