Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
4c6a30ff
Commit
4c6a30ff
authored
Aug 29, 2020
by
Antoine Kaufmann
Browse files
i40e: add hash key register
parent
2a16a5b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
i40e_bm/i40e_bm.cc
i40e_bm/i40e_bm.cc
+9
-1
i40e_bm/i40e_bm.h
i40e_bm/i40e_bm.h
+2
-0
No files found.
i40e_bm/i40e_bm.cc
View file @
4c6a30ff
...
...
@@ -138,7 +138,11 @@ uint32_t i40e_bm::reg_mem_read32(uint64_t addr)
}
else
if
(
addr
>=
I40E_QRX_ENA
(
0
)
&&
addr
<=
I40E_QRX_ENA
(
NUM_QUEUES
-
1
))
{
val
=
regs
.
qrx_ena
[(
addr
-
I40E_QRX_ENA
(
0
))
/
4
]
=
val
;
val
=
regs
.
qrx_ena
[(
addr
-
I40E_QRX_ENA
(
0
))
/
4
];
}
else
if
(
addr
>=
I40E_GLQF_HKEY
(
0
)
&&
addr
<=
I40E_GLQF_HKEY
(
I40E_GLQF_HKEY_MAX_INDEX
))
{
val
=
regs
.
glqf_hkey
[(
addr
-
I40E_GLQF_HKEY
(
0
))
/
4
];
}
else
{
switch
(
addr
)
{
...
...
@@ -319,6 +323,10 @@ void i40e_bm::reg_mem_write32(uint64_t addr, uint32_t val)
addr
<=
I40E_QRX_ENA
(
NUM_QUEUES
-
1
))
{
regs
.
qrx_ena
[(
addr
-
I40E_QRX_ENA
(
0
))
/
4
]
=
val
;
}
else
if
(
addr
>=
I40E_GLQF_HKEY
(
0
)
&&
addr
<=
I40E_GLQF_HKEY
(
I40E_GLQF_HKEY_MAX_INDEX
))
{
regs
.
glqf_hkey
[(
addr
-
I40E_GLQF_HKEY
(
0
))
/
4
]
=
val
;
}
else
{
switch
(
addr
)
{
case
I40E_PFGEN_CTRL
:
...
...
i40e_bm/i40e_bm.h
View file @
4c6a30ff
...
...
@@ -153,6 +153,8 @@ protected:
uint32_t
pf_arqlen
;
uint32_t
pf_arqh
;
uint32_t
pf_arqt
;
uint32_t
glqf_hkey
[
13
];
};
public:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment