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
0ceb071a
Commit
0ceb071a
authored
Sep 12, 2020
by
Antoine Kaufmann
Browse files
i40e: improve debug info
parent
53f33def
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
i40e_bm/i40e_adminq.cc
i40e_bm/i40e_adminq.cc
+5
-0
i40e_bm/i40e_lan.cc
i40e_bm/i40e_lan.cc
+4
-4
No files found.
i40e_bm/i40e_adminq.cc
View file @
0ceb071a
...
@@ -66,6 +66,11 @@ void queue_admin_tx::admin_desc_ctx::desc_compl_prepare(uint16_t retval,
...
@@ -66,6 +66,11 @@ void queue_admin_tx::admin_desc_ctx::desc_compl_prepare(uint16_t retval,
if
(
retval
)
if
(
retval
)
d
->
flags
|=
I40E_AQ_FLAG_ERR
;
d
->
flags
|=
I40E_AQ_FLAG_ERR
;
d
->
retval
=
retval
;
d
->
retval
=
retval
;
#ifdef DEBUG_ADMINQ
std
::
cerr
<<
"atq: desc_compl_prepare index="
<<
index
<<
" retval="
<<
retval
<<
std
::
endl
;
#endif
}
}
void
queue_admin_tx
::
admin_desc_ctx
::
desc_complete
(
uint16_t
retval
,
void
queue_admin_tx
::
admin_desc_ctx
::
desc_complete
(
uint16_t
retval
,
...
...
i40e_bm/i40e_lan.cc
View file @
0ceb071a
...
@@ -458,8 +458,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
...
@@ -458,8 +458,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
uint64_t
d1
=
d
->
cmd_type_offset_bsz
;
uint64_t
d1
=
d
->
cmd_type_offset_bsz
;
#ifdef DEBUG_LAN
#ifdef DEBUG_LAN
std
::
cerr
<<
qname
<<
": desc fetched didx="
<<
index
<<
" d1="
<<
d1
<<
std
::
cerr
<<
queue
.
qname
<<
": desc fetched didx="
<<
index
<<
" d1="
<<
std
::
endl
;
d1
<<
std
::
endl
;
#endif
#endif
uint8_t
dtype
=
(
d1
&
I40E_TXD_QW1_DTYPE_MASK
)
>>
I40E_TXD_QW1_DTYPE_SHIFT
;
uint8_t
dtype
=
(
d1
&
I40E_TXD_QW1_DTYPE_MASK
)
>>
I40E_TXD_QW1_DTYPE_SHIFT
;
...
@@ -468,8 +468,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
...
@@ -468,8 +468,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
I40E_TXD_QW1_TX_BUF_SZ_SHIFT
;
I40E_TXD_QW1_TX_BUF_SZ_SHIFT
;
#ifdef DEBUG_LAN
#ifdef DEBUG_LAN
std
::
cerr
<<
qname
<<
": bufaddr="
<<
d
->
buffer_addr
<<
" len="
<<
std
::
cerr
<<
queue
.
qname
<<
": bufaddr="
<<
d
->
buffer_addr
<<
len
<<
std
::
endl
;
" len="
<<
len
<<
std
::
endl
;
#endif
#endif
data_fetch
(
d
->
buffer_addr
,
len
);
data_fetch
(
d
->
buffer_addr
,
len
);
...
...
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