Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3839f99d
Commit
3839f99d
authored
Apr 23, 2019
by
Saeed Mahameed
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mlx5-next' of
git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux
parents
be659b8d
c3bdd5e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
+0
-5
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+10
-2
include/linux/mlx5/fs.h
include/linux/mlx5/fs.h
+6
-0
No files found.
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
View file @
3839f99d
...
...
@@ -43,11 +43,6 @@
#include "ecpf.h"
#include "lib/eq.h"
enum
{
FDB_FAST_PATH
=
0
,
FDB_SLOW_PATH
};
/* There are two match-all miss flows, one for unicast dst mac and
* one for multicast.
*/
...
...
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
View file @
3839f99d
...
...
@@ -2516,8 +2516,16 @@ static int init_fdb_root_ns(struct mlx5_flow_steering *steering)
if
(
!
steering
->
fdb_sub_ns
)
return
-
ENOMEM
;
maj_prio
=
fs_create_prio
(
&
steering
->
fdb_root_ns
->
ns
,
FDB_BYPASS_PATH
,
1
);
if
(
IS_ERR
(
maj_prio
))
{
err
=
PTR_ERR
(
maj_prio
);
goto
out_err
;
}
levels
=
2
*
FDB_MAX_PRIO
*
(
FDB_MAX_CHAIN
+
1
);
maj_prio
=
fs_create_prio_chained
(
&
steering
->
fdb_root_ns
->
ns
,
0
,
maj_prio
=
fs_create_prio_chained
(
&
steering
->
fdb_root_ns
->
ns
,
FDB_FAST_PATH
,
levels
);
if
(
IS_ERR
(
maj_prio
))
{
err
=
PTR_ERR
(
maj_prio
);
...
...
@@ -2542,7 +2550,7 @@ static int init_fdb_root_ns(struct mlx5_flow_steering *steering)
steering
->
fdb_sub_ns
[
chain
]
=
ns
;
}
maj_prio
=
fs_create_prio
(
&
steering
->
fdb_root_ns
->
ns
,
1
,
1
);
maj_prio
=
fs_create_prio
(
&
steering
->
fdb_root_ns
->
ns
,
FDB_SLOW_PATH
,
1
);
if
(
IS_ERR
(
maj_prio
))
{
err
=
PTR_ERR
(
maj_prio
);
goto
out_err
;
...
...
include/linux/mlx5/fs.h
View file @
3839f99d
...
...
@@ -75,6 +75,12 @@ enum mlx5_flow_namespace_type {
MLX5_FLOW_NAMESPACE_EGRESS
,
};
enum
{
FDB_BYPASS_PATH
,
FDB_FAST_PATH
,
FDB_SLOW_PATH
,
};
struct
mlx5_flow_table
;
struct
mlx5_flow_group
;
struct
mlx5_flow_namespace
;
...
...
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