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/ice/base: reduce profile to recip info get from firmware
[dpdk.git]
/
drivers
/
net
/
ice
/
ice_ethdev.c
diff --git
a/drivers/net/ice/ice_ethdev.c
b/drivers/net/ice/ice_ethdev.c
index
8fb4b30
..
9ff8061
100644
(file)
--- a/
drivers/net/ice/ice_ethdev.c
+++ b/
drivers/net/ice/ice_ethdev.c
@@
-2053,7
+2053,7
@@
ice_get_hw_res(struct ice_hw *hw, uint16_t res_type,
uint16_t num, uint16_t desc_id,
uint16_t *prof_buf, uint16_t *num_prof)
{
uint16_t num, uint16_t desc_id,
uint16_t *prof_buf, uint16_t *num_prof)
{
- struct ice_aqc_
get_allocd_res_desc_resp
*resp_buf;
+ struct ice_aqc_
res_elem
*resp_buf;
int ret;
uint16_t buf_len;
bool res_shared = 1;
int ret;
uint16_t buf_len;
bool res_shared = 1;
@@
-2062,7
+2062,7
@@
ice_get_hw_res(struct ice_hw *hw, uint16_t res_type,
struct ice_aqc_get_allocd_res_desc *cmd =
&aq_desc.params.get_res_desc;
struct ice_aqc_get_allocd_res_desc *cmd =
&aq_desc.params.get_res_desc;
- buf_len = sizeof(
resp_buf->elem
) * num;
+ buf_len = sizeof(
*resp_buf
) * num;
resp_buf = ice_malloc(hw, buf_len);
if (!resp_buf)
return -ENOMEM;
resp_buf = ice_malloc(hw, buf_len);
if (!resp_buf)
return -ENOMEM;
@@
-2081,7
+2081,7
@@
ice_get_hw_res(struct ice_hw *hw, uint16_t res_type,
else
goto exit;
else
goto exit;
- ice_memcpy(prof_buf, resp_buf
->elem, sizeof(resp_buf->elem
) *
+ ice_memcpy(prof_buf, resp_buf
, sizeof(*resp_buf
) *
(*num_prof), ICE_NONDMA_TO_NONDMA);
exit:
(*num_prof), ICE_NONDMA_TO_NONDMA);
exit: