Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f26e958c
Commit
f26e958c
authored
Oct 30, 2012
by
Ben Hutchings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: Name the RX drop queue ID
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
33a8985c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/ethtool.c
+2
-2
drivers/net/ethernet/sfc/filter.h
drivers/net/ethernet/sfc/filter.h
+6
-1
No files found.
drivers/net/ethernet/sfc/ethtool.c
View file @
f26e958c
...
...
@@ -822,7 +822,7 @@ static int efx_ethtool_get_class_rule(struct efx_nic *efx,
if
(
rc
)
return
rc
;
if
(
spec
.
dmaq_id
==
0xfff
)
if
(
spec
.
dmaq_id
==
EFX_FILTER_RX_DMAQ_ID_DROP
)
rule
->
ring_cookie
=
RX_CLS_FLOW_DISC
;
else
rule
->
ring_cookie
=
spec
.
dmaq_id
;
...
...
@@ -967,7 +967,7 @@ static int efx_ethtool_set_class_rule(struct efx_nic *efx,
efx_filter_init_rx
(
&
spec
,
EFX_FILTER_PRI_MANUAL
,
efx
->
rx_scatter
?
EFX_FILTER_FLAG_RX_SCATTER
:
0
,
(
rule
->
ring_cookie
==
RX_CLS_FLOW_DISC
)
?
0xfff
:
rule
->
ring_cookie
);
EFX_FILTER_RX_DMAQ_ID_DROP
:
rule
->
ring_cookie
);
switch
(
rule
->
flow_type
)
{
case
TCP_V4_FLOW
:
...
...
drivers/net/ethernet/sfc/filter.h
View file @
f26e958c
...
...
@@ -76,7 +76,8 @@ enum efx_filter_flags {
* @type: Type of match to be performed, from &enum efx_filter_type
* @priority: Priority of the filter, from &enum efx_filter_priority
* @flags: Miscellaneous flags, from &enum efx_filter_flags
* @dmaq_id: Source/target queue index
* @dmaq_id: Source/target queue index, or %EFX_FILTER_RX_DMAQ_ID_DROP for
* an RX drop filter
* @data: Match data (type-dependent)
*
* Use the efx_filter_set_*() functions to initialise the @type and
...
...
@@ -94,6 +95,10 @@ struct efx_filter_spec {
u32
data
[
3
];
};
enum
{
EFX_FILTER_RX_DMAQ_ID_DROP
=
0xfff
};
static
inline
void
efx_filter_init_rx
(
struct
efx_filter_spec
*
spec
,
enum
efx_filter_priority
priority
,
enum
efx_filter_flags
flags
,
...
...
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