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
be3fe299
Commit
be3fe299
authored
Aug 29, 2020
by
Antoine Kaufmann
Browse files
i40e: split out run command function
In preparation for commands with indirect command data.
parent
ecf5d8d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
i40e_bm/i40e_adminq.cc
i40e_bm/i40e_adminq.cc
+6
-1
i40e_bm/i40e_bm.h
i40e_bm/i40e_bm.h
+5
-0
No files found.
i40e_bm/i40e_adminq.cc
View file @
be3fe299
...
...
@@ -54,7 +54,7 @@ void queue_admin_tx::desc_complete_indir(struct i40e_aq_desc *d, uint32_t idx,
}
void
queue_admin_tx
::
desc_fetched
(
void
*
desc
,
uint32_t
idx
)
void
queue_admin_tx
::
cmd_run
(
void
*
desc
,
uint32_t
idx
,
void
*
data
)
{
struct
i40e_aq_desc
*
d
=
reinterpret_cast
<
struct
i40e_aq_desc
*>
(
desc
);
...
...
@@ -253,6 +253,11 @@ void queue_admin_tx::desc_fetched(void *desc, uint32_t idx)
}
}
void
queue_admin_tx
::
desc_fetched
(
void
*
desc
,
uint32_t
idx
)
{
cmd_run
(
desc
,
idx
,
nullptr
);
}
void
queue_admin_tx
::
reg_updated
()
{
base
=
reg_base
;
...
...
i40e_bm/i40e_bm.h
View file @
be3fe299
...
...
@@ -92,6 +92,11 @@ class queue_admin_tx : public queue_base {
void
desc_complete_indir
(
struct
i40e_aq_desc
*
d
,
uint32_t
idx
,
uint16_t
retval
,
const
void
*
data
,
size_t
len
,
uint16_t
extra_flags
=
0
);
// run command
virtual
void
cmd_run
(
void
*
desc
,
uint32_t
idx
,
void
*
data
);
// called by base class when a descriptor has been fetched
virtual
void
desc_fetched
(
void
*
desc
,
uint32_t
idx
);
uint64_t
&
reg_base
;
...
...
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