Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f7105d63
Commit
f7105d63
authored
Jan 27, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: If SKB has attached socket, use socket's hash for TX queue selection.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
0c8dfc83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
net/core/dev.c
net/core/dev.c
+7
-0
No files found.
net/core/dev.c
View file @
f7105d63
...
...
@@ -1729,6 +1729,13 @@ static u16 simple_tx_hash(struct net_device *dev, struct sk_buff *skb)
goto
out
;
}
if
(
skb
->
sk
&&
skb
->
sk
->
sk_hash
)
{
u32
val
=
skb
->
sk
->
sk_hash
;
hash
=
jhash_1word
(
val
,
simple_tx_hashrnd
);
goto
out
;
}
switch
(
skb
->
protocol
)
{
case
htons
(
ETH_P_IP
):
if
(
!
(
ip_hdr
(
skb
)
->
frag_off
&
htons
(
IP_MF
|
IP_OFFSET
)))
...
...
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