Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Network Interface Card
Commits
44d09ea9
Commit
44d09ea9
authored
Aug 19, 2014
by
Grzegorz Daniluk
Committed by
Miguel Jimenez Lopez
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/wr_nic: add default 802.1q priority mapping
Without this fix all 802.1q tagged frames are assigned to class 0
parent
ee7d3b30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
endpoint.c
kernel/wr_nic/endpoint.c
+9
-0
No files found.
kernel/wr_nic/endpoint.c
View file @
44d09ea9
...
...
@@ -155,6 +155,7 @@ int wrn_ep_open(struct net_device *dev)
{
struct
wrn_ep
*
ep
=
netdev_priv
(
dev
);
unsigned
long
timerarg
=
(
unsigned
long
)
dev
;
int
prio
,
prio_map
;
/* Prepare hardware registers: first config, then bring up */
writel
(
0
...
...
@@ -162,6 +163,14 @@ int wrn_ep_open(struct net_device *dev)
|
EP_VCR0_PRIO_VAL_W
(
4
),
/* some mid priority */
&
ep
->
ep_regs
->
VCR0
);
/* Write default 802.1Q tag priority to traffic class mapping */
prio_map
=
0
;
for
(
prio
=
0
;
prio
<
8
;
++
prio
)
{
prio_map
|=
(
0x7
&
prio
)
<<
(
prio
*
3
);
}
writel
(
prio_map
,
&
ep
->
ep_regs
->
TCAR
);
/*
* enable RX timestamping (it has no impact on performance)
* and we need the RX OOB block to identify orginating endpoints
...
...
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