Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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 Switch - Software
Commits
7e82f062
Commit
7e82f062
authored
Aug 19, 2014
by
Grzegorz Daniluk
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
b9643095
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 @
7e82f062
...
@@ -155,6 +155,7 @@ int wrn_ep_open(struct net_device *dev)
...
@@ -155,6 +155,7 @@ int wrn_ep_open(struct net_device *dev)
{
{
struct
wrn_ep
*
ep
=
netdev_priv
(
dev
);
struct
wrn_ep
*
ep
=
netdev_priv
(
dev
);
unsigned
long
timerarg
=
(
unsigned
long
)
dev
;
unsigned
long
timerarg
=
(
unsigned
long
)
dev
;
int
prio
,
prio_map
;
/* Prepare hardware registers: first config, then bring up */
/* Prepare hardware registers: first config, then bring up */
writel
(
0
writel
(
0
...
@@ -162,6 +163,14 @@ int wrn_ep_open(struct net_device *dev)
...
@@ -162,6 +163,14 @@ int wrn_ep_open(struct net_device *dev)
|
EP_VCR0_PRIO_VAL_W
(
4
),
/* some mid priority */
|
EP_VCR0_PRIO_VAL_W
(
4
),
/* some mid priority */
&
ep
->
ep_regs
->
VCR0
);
&
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)
* enable RX timestamping (it has no impact on performance)
* and we need the RX OOB block to identify orginating endpoints
* 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