Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Simple PCIe FMC carrier SPEC - Software
Commits
7de7c767
Commit
7de7c767
authored
Aug 19, 2014
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Dec 02, 2014
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
d195f1d7
Show 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 @
7de7c767
...
...
@@ -176,6 +176,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
;
if
(
WR_IS_NODE
)
{
netif_carrier_on
(
dev
);
...
...
@@ -188,6 +189,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