-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Revised the codebase and Bazel buildsystem to allow krnlmon to be built for ES2K with support for Linux Networking V2 or V3. A new --//flags:lnw_version command-line flag specifies the version to be enabled. Signed-off-by: Derek G Foster <[email protected]>
- Loading branch information
Showing
12 changed files
with
152 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# //switchapi/es2k/lnw_v2/BUILD.bazel | ||
|
||
# Copyright 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load("//bazel:rules.bzl", "krnlmon_cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_lag_hdr", | ||
hdrs = ["switch_pd_lag.h"], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_lag", | ||
srcs = ["switch_pd_lag.c"], | ||
deps = [ | ||
":switch_pd_lag_hdr", | ||
"//switchapi:switch_device", | ||
"//switchapi:switch_handle", | ||
"//switchapi:switch_internal", | ||
"//switchapi:switch_lag", | ||
"//switchapi/es2k:switch_pd_utils", | ||
"//switchapi/es2k:switch_pd_p4_name_mapping", | ||
"@local_es2k_bin//:sde_hdrs", | ||
], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_p4_name_routing", | ||
hdrs = ["switch_pd_p4_name_routing.h"], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_routing", | ||
srcs = ["switch_pd_routing.c"], | ||
deps = [ | ||
"//switchapi:switch_base_types", | ||
"//switchapi:switch_handle", | ||
"//switchapi:switch_l3", | ||
"//switchapi:switch_nhop", | ||
"//switchapi:switch_nhop_int", | ||
"//switchapi:switch_rmac_int", | ||
"//switchapi/es2k:switch_pd_p4_name_mapping", | ||
"//switchapi/es2k:switch_pd_routing_hdr", | ||
"//switchapi/es2k:switch_pd_utils", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# //switchapi/es2k/lnw_v3/BUILD.bazel | ||
|
||
# Copyright 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load("//bazel:rules.bzl", "krnlmon_cc_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_lag_hdr", | ||
hdrs = ["switch_pd_lag.h"], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_lag", | ||
srcs = ["switch_pd_lag.c"], | ||
deps = [ | ||
":switch_pd_lag_hdr", | ||
"//switchapi:switch_device", | ||
"//switchapi:switch_handle", | ||
"//switchapi:switch_internal", | ||
"//switchapi:switch_lag", | ||
"//switchapi/es2k:switch_pd_p4_name_mapping", | ||
"//switchapi/es2k:switch_pd_utils", | ||
"@local_es2k_bin//:sde_hdrs", | ||
], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_p4_name_routing", | ||
hdrs = ["switch_pd_p4_name_routing.h"], | ||
) | ||
|
||
krnlmon_cc_library( | ||
name = "switch_pd_routing", | ||
srcs = ["switch_pd_routing.c"], | ||
deps = [ | ||
"//switchapi:switch_base_types", | ||
"//switchapi:switch_handle", | ||
"//switchapi:switch_l3", | ||
"//switchapi:switch_nhop", | ||
"//switchapi:switch_nhop_int", | ||
"//switchapi:switch_rmac_int", | ||
"//switchapi/es2k:switch_pd_p4_name_mapping", | ||
"//switchapi/es2k:switch_pd_routing_hdr", | ||
"//switchapi/es2k:switch_pd_utils", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.