Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Linux Networking v2 from krnlmon codebase #148

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

5abeel
Copy link
Collaborator

@5abeel 5abeel commented Jun 25, 2024

This PR removes all the LNW_v2 from the krnlmon codebase since LNW_v2 is not supported anymore.

This PR removes code support. A subsequent PR will cleanup all build related support (cmake and bazel)

Copy link
Contributor

@ffoulkes ffoulkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dfoster@dgfoster-mobl1:~/work/latest$ find ovs-p4rt/ -name '*.cc' -o -name '*.h' | xargs grep LNW_
ovs-p4rt/sidecar/ovsp4rt.cc:#ifdef LNW_V2
ovs-p4rt/sidecar/ovsp4rt.cc:#endif  // LNW_V2
ovs-p4rt/sidecar/ovsp4rt.cc:#ifdef LNW_V2
ovs-p4rt/sidecar/ovsp4rt.cc:#ifdef LNW_V2
ovs-p4rt/sidecar/ovsp4rt.cc:#ifdef LNW_V2
ovs-p4rt/sidecar/ovsp4rt.cc:#ifdef LNW_V2

And the networking-recipe buildsystem:

dfoster@dgfoster-mobl1:~/work/latest$ find -name CMakeLists.txt -o -name '*.cmake' | xargs grep Lnw
./CMakeLists.txt:include(LnwVersion)
./cmake/LnwVersion.cmake:# cmake/LnwVersion.cmake
./krnlmon/krnlmon/cmake/standalone.cmake:include(LnwVersion)
./build/CMakeFiles/Makefile.cmake:  "../cmake/LnwVersion.cmake"

And these script files:

dfoster@dgfoster-mobl1:~/work/latest$ find -name '*.sh' | xargs grep lnw
./make-all.sh:    echo "  --lnw-version=VER    Linux networking version [${_LNW_VERSION}]"
./make-all.sh:LONGOPTS=${LONGOPTS},cxx-std:,jobs:,lnw-version:,staging:,target:
./make-all.sh:    --lnw-version)
./scripts/es2k/config-cross-recipe.sh:    echo "  --lnw-version=VER    Linux networking version [${_LNW_VERSION}]"
./scripts/es2k/config-cross-recipe.sh:LONGOPTS=build:,deps:,hostdeps:,lnw-version:,ovs:,prefix:,sde:,toolchain:
./scripts/es2k/config-cross-recipe.sh:    --lnw-version)

dfoster@dgfoster-mobl1:~/work/latest$ find -name '*.sh' | xargs grep LNW_
./make-all.sh:_LNW_VERSION=
./make-all.sh:    echo "  --lnw-version=VER    Linux networking version [${_LNW_VERSION}]"
./make-all.sh:    [ -n "${_LNW_VERSION}" ] && echo "${_LNW_VERSION:2}"
./make-all.sh:        ${_LNW_VERSION} \
./make-all.sh:        _LNW_VERSION=$2
./make-all.sh:[ -n "${_LNW_VERSION}" ] && _LNW_VERSION="-DLNW_VERSION=${_LNW_VERSION}"
./scripts/es2k/config-cross-recipe.sh:    echo "  --lnw-version=VER    Linux networking version [${_LNW_VERSION}]"
./scripts/es2k/config-cross-recipe.sh:    [ -n "${_LNW_VERSION}" ] && echo "${_LNW_VERSION:2}"
./scripts/es2k/config-cross-recipe.sh:        _LNW_VERSION=$2
./scripts/es2k/config-cross-recipe.sh:[ -n "${_LNW_VERSION}" ] && _LNW_VERSION="-DLNW_VERSION=${_LNW_VERSION}"
./scripts/es2k/config-cross-recipe.sh:    ${_LNW_VERSION} \

And these document files:

dfoster@dgfoster-mobl1:~/work/latest$ find ../p4cp-userguide/ -name '*.md' -o -name '*.rst' | xargs grep lnw_
../p4cp-userguide/docs/scripts/make-all.rst:``--lnw_version=VERSION``
../p4cp-userguide/docs/scripts/config-cross-recipe.rst:``--lnw_version=VERSION``

switchapi/es2k/switch_pd_lag.h Outdated Show resolved Hide resolved
Copy link
Contributor

@ffoulkes ffoulkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ffoulkes ffoulkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ffoulkes ffoulkes merged commit d62ee15 into main Jun 26, 2024
4 checks passed
@ffoulkes ffoulkes deleted the remove_lnw_v2 branch June 26, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants