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/pcap: fix file descriptor leak on close
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_regs.c
diff --git
a/drivers/net/hns3/hns3_regs.c
b/drivers/net/hns3/hns3_regs.c
index
775e096
..
84f3157
100644
(file)
--- a/
drivers/net/hns3/hns3_regs.c
+++ b/
drivers/net/hns3/hns3_regs.c
@@
-2,7
+2,7
@@
* Copyright(c) 2018-2019 Hisilicon Limited.
*/
* Copyright(c) 2018-2019 Hisilicon Limited.
*/
-#include <
rte_
ethdev_pci.h>
+#include <ethdev_pci.h>
#include <rte_io.h>
#include "hns3_ethdev.h"
#include <rte_io.h>
#include "hns3_ethdev.h"
@@
-300,8
+300,8
@@
hns3_direct_access_regs(struct hns3_hw *hw, uint32_t *data)
}
reg_num = sizeof(tqp_intr_reg_addrs) / sizeof(uint32_t);
}
reg_num = sizeof(tqp_intr_reg_addrs) / sizeof(uint32_t);
- for (j = 0; j < hw->
num_msi
; j++) {
- reg_offset =
HNS3_TQP_INTR_REG_SIZE * j
;
+ for (j = 0; j < hw->
intr_tqps_num
; j++) {
+ reg_offset =
hns3_get_tqp_intr_reg_offset(j)
;
for (i = 0; i < reg_num; i++)
*data++ = hns3_read_dev(hw, tqp_intr_reg_addrs[i] +
reg_offset);
for (i = 0; i < reg_num; i++)
*data++ = hns3_read_dev(hw, tqp_intr_reg_addrs[i] +
reg_offset);