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

Support --load-modules option for simple_switch_grpc #720

Merged

Conversation

antoninbas
Copy link
Member

Since this is useful for many targets (simple_switch, simple_switch_grpc
and possibly psa_switch) and has been around for a while, I decided to
move support for --load-modules to the core bmv2 library, by adding a
new reference target-specific option parser
(TargetParserBasicWithDynModules) that targets can use directly. The
reason why this functionality did not find its way into the main bmv2
option parser is because it requires the target to be linked with
-rdynamic, so I believe it is better for the target to choose whether
this functionality is required or not. Not moving it to the main option
parser also guarantees backward-compatibility for simple_switch users.

Fixes #719

@codecov-io
Copy link

codecov-io commented Feb 21, 2019

Codecov Report

Merging #720 into master will decrease coverage by 0.12%.
The diff coverage is 15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #720      +/-   ##
==========================================
- Coverage   74.81%   74.69%   -0.13%     
==========================================
  Files         114      115       +1     
  Lines        9874     9894      +20     
==========================================
+ Hits         7387     7390       +3     
- Misses       2487     2504      +17
Impacted Files Coverage Δ
include/bm/bm_sim/target_parser.h 0% <0%> (ø)
src/bm_sim/target_parser.cpp 72.22% <15.78%> (-20.24%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0557502...b87107c. Read the comment docs.

Since this is useful for many targets (simple_switch, simple_switch_grpc
and possibly psa_switch) and has been around for a while, I decided to
move support for --load-modules to the core bmv2 library, by adding a
new reference target-specific option parser
(`TargetParserBasicWithDynModules`) that targets can use directly. The
reason why this functionality did not find its way into the main bmv2
option parser is because it requires the target to be linked with
-rdynamic, so I believe it is better for the target to choose whether
this functionality is required or not. Not moving it to the main option
parser also guarantees backward-compatibility for simple_switch users.

Fixes #719
@antoninbas antoninbas force-pushed the antonin/support-load-modules-option-for-simple-switch-grpc branch from afaaf45 to b87107c Compare February 21, 2019 02:55
@antoninbas antoninbas merged commit d434083 into master Feb 21, 2019
@antoninbas antoninbas deleted the antonin/support-load-modules-option-for-simple-switch-grpc branch February 21, 2019 07:03
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