Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-backend-4.9.5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pacer
linux-backend-4.9.5
Commits
628811d0
Commit
628811d0
authored
7 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
hack: fix the nonce for RSS hash function in code
parent
e1fbd084
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+20
-0
20 additions, 0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
with
20 additions
and
0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+
20
−
0
View file @
628811d0
...
...
@@ -2570,10 +2570,18 @@ static int bnx2x_init_rss(struct bnx2x *bp)
return
bnx2x_config_rss_eth
(
bp
,
bp
->
port
.
pmf
||
!
CHIP_IS_E1x
(
bp
));
}
//#ifdef CONFIG_XEN_SME
//struct bnx2x_config_rss_params sme_rss_params;
//#endif
int
bnx2x_rss
(
struct
bnx2x
*
bp
,
struct
bnx2x_rss_config_obj
*
rss_obj
,
bool
config_hash
,
bool
enable
)
{
struct
bnx2x_config_rss_params
params
=
{
NULL
};
#ifdef CONFIG_XEN_SME
int
i
;
//memset(&sme_rss_params, 0, sizeof(struct bnx2x_config_rss_params));
#endif
/* Although RSS is meaningless when there is a single HW queue we
* still need it enabled in order to have HW Rx hash generated.
...
...
@@ -2619,6 +2627,18 @@ int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
if
(
config_hash
)
{
/* RSS keys */
netdev_rss_key_fill
(
params
.
rss_key
,
T_ETH_RSS_KEY
*
4
);
#ifdef CONFIG_XEN_SME
// memcpy((void *) &sme_rss_params.rss_key, (void *) ¶ms.rss_key,
// T_ETH_RSS_KEY * 4);
memset
((
void
*
)
&
params
.
rss_key
,
0
,
T_ETH_RSS_KEY
*
4
);
for
(
i
=
0
;
i
<
T_ETH_RSS_KEY
;
i
++
)
{
params
.
rss_key
[
i
]
=
i
;
}
// for (i = 0; i < T_ETH_RSS_KEY; i++) {
// printk(KERN_ERR "rss key %d: %u %u", i, params.rss_key[i],
// sme_rss_params.rss_key[i]);
// }
#endif
__set_bit
(
BNX2X_RSS_SET_SRCH
,
&
params
.
rss_flags
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment