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
eaf605fd
Commit
eaf605fd
authored
Nov 16, 2020
by
Antoine Kaufmann
Browse files
i40e_bm: richer debugging prints for queues
parent
b72a84ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
i40e_bm/i40e_lan.cc
i40e_bm/i40e_lan.cc
+6
-2
i40e_bm/i40e_queues.cc
i40e_bm/i40e_queues.cc
+4
-0
No files found.
i40e_bm/i40e_lan.cc
View file @
eaf605fd
...
@@ -40,10 +40,11 @@ void lan::reset()
...
@@ -40,10 +40,11 @@ void lan::reset()
void
lan
::
qena_updated
(
uint16_t
idx
,
bool
rx
)
void
lan
::
qena_updated
(
uint16_t
idx
,
bool
rx
)
{
{
uint32_t
&
reg
=
(
rx
?
dev
.
regs
.
qrx_ena
[
idx
]
:
dev
.
regs
.
qtx_ena
[
idx
]);
#ifdef DEBUG_LAN
#ifdef DEBUG_LAN
log
<<
" qena updated idx="
<<
idx
<<
" rx="
<<
rx
<<
logger
::
endl
;
log
<<
" qena updated idx="
<<
idx
<<
" rx="
<<
rx
<<
" reg="
<<
reg
<<
logger
::
endl
;
#endif
#endif
uint32_t
&
reg
=
(
rx
?
dev
.
regs
.
qrx_ena
[
idx
]
:
dev
.
regs
.
qtx_ena
[
idx
]);
lan_queue_base
&
q
=
(
rx
?
static_cast
<
lan_queue_base
&>
(
*
rxqs
[
idx
])
:
lan_queue_base
&
q
=
(
rx
?
static_cast
<
lan_queue_base
&>
(
*
rxqs
[
idx
])
:
static_cast
<
lan_queue_base
&>
(
*
txqs
[
idx
]));
static_cast
<
lan_queue_base
&>
(
*
txqs
[
idx
]));
...
@@ -102,6 +103,9 @@ bool lan::rss_steering(const void *data, size_t len, uint16_t &queue,
...
@@ -102,6 +103,9 @@ bool lan::rss_steering(const void *data, size_t len, uint16_t &queue,
128
:
512
);
128
:
512
);
uint16_t
idx
=
hash
%
luts
;
uint16_t
idx
=
hash
%
luts
;
queue
=
(
dev
.
regs
.
pfqf_hlut
[
idx
/
4
]
>>
(
8
*
(
idx
%
4
)))
&
0x3f
;
queue
=
(
dev
.
regs
.
pfqf_hlut
[
idx
/
4
]
>>
(
8
*
(
idx
%
4
)))
&
0x3f
;
#ifdef DEBUG_LAN
log
<<
" q="
<<
queue
<<
" h="
<<
hash
<<
" i="
<<
idx
<<
logger
::
endl
;
#endif
return
true
;
return
true
;
}
}
...
...
i40e_bm/i40e_queues.cc
View file @
eaf605fd
...
@@ -164,6 +164,10 @@ void queue_base::reset()
...
@@ -164,6 +164,10 @@ void queue_base::reset()
void
queue_base
::
reg_updated
()
void
queue_base
::
reg_updated
()
{
{
#ifdef DEBUG_QUEUES
log
<<
"reg_updated: tail="
<<
reg_tail
<<
" enabled="
<<
(
int
)
enabled
<<
logger
::
endl
;
#endif
if
(
!
enabled
)
if
(
!
enabled
)
return
;
return
;
...
...
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