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
f854fc37
"include/exceptions.h" did not exist on "0683cbf8590838b5c59df59cede4804f61000f9f"
Commit
f854fc37
authored
Sep 10, 2020
by
Antoine Kaufmann
Browse files
i40e: add reset to tx queue
parent
931dd25b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
i40e_bm/i40e_bm.h
i40e_bm/i40e_bm.h
+1
-0
i40e_bm/i40e_lan.cc
i40e_bm/i40e_lan.cc
+7
-1
No files found.
i40e_bm/i40e_bm.h
View file @
f854fc37
...
@@ -230,6 +230,7 @@ class lan_queue_tx : public lan_queue_base {
...
@@ -230,6 +230,7 @@ class lan_queue_tx : public lan_queue_base {
lan_queue_tx
(
lan
&
lanmgr_
,
uint32_t
&
reg_tail
,
size_t
idx
,
lan_queue_tx
(
lan
&
lanmgr_
,
uint32_t
&
reg_tail
,
size_t
idx
,
uint32_t
&
reg_ena
,
uint32_t
&
fpm_basereg
,
uint32_t
&
reg_ena
,
uint32_t
&
fpm_basereg
,
uint32_t
&
reg_intqctl
);
uint32_t
&
reg_intqctl
);
virtual
void
reset
();
};
};
class
lan_queue_rx
:
public
lan_queue_base
{
class
lan_queue_rx
:
public
lan_queue_base
{
...
...
i40e_bm/i40e_lan.cc
View file @
f854fc37
...
@@ -276,11 +276,17 @@ void lan_queue_rx::packet_received(const void *data, size_t pktlen)
...
@@ -276,11 +276,17 @@ void lan_queue_rx::packet_received(const void *data, size_t pktlen)
lan_queue_tx
::
lan_queue_tx
(
lan
&
lanmgr_
,
uint32_t
&
reg_tail_
,
size_t
idx_
,
lan_queue_tx
::
lan_queue_tx
(
lan
&
lanmgr_
,
uint32_t
&
reg_tail_
,
size_t
idx_
,
uint32_t
&
reg_ena_
,
uint32_t
&
reg_fpmbase_
,
uint32_t
&
reg_intqctl
)
uint32_t
&
reg_ena_
,
uint32_t
&
reg_fpmbase_
,
uint32_t
&
reg_intqctl
)
:
lan_queue_base
(
lanmgr_
,
reg_tail_
,
idx_
,
reg_ena_
,
reg_fpmbase_
,
:
lan_queue_base
(
lanmgr_
,
reg_tail_
,
idx_
,
reg_ena_
,
reg_fpmbase_
,
reg_intqctl
,
128
)
reg_intqctl
,
128
)
,
pktbuf_len
(
0
)
{
{
desc_len
=
16
;
desc_len
=
16
;
}
}
void
lan_queue_tx
::
reset
()
{
pktbuf_len
=
0
;
queue_base
::
reset
();
}
void
lan_queue_tx
::
initialize
()
void
lan_queue_tx
::
initialize
()
{
{
std
::
cerr
<<
"lan_queue_tx::initialize()"
<<
std
::
endl
;
std
::
cerr
<<
"lan_queue_tx::initialize()"
<<
std
::
endl
;
...
...
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