-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
Signed-off-by: Sabeel Ansari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- PR Remove //flags:lnw_version from bazel build #149 (against this PR) updates the Bazel build. It also fixes a conditional in one of the C files.
- You will also need to remove LNW version support from ovs-p4rt:
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``
Signed-off-by: Derek Foster <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Sabeel Ansari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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)