-
Notifications
You must be signed in to change notification settings - Fork 1
structopt -> clap, Rust 1.90/2024, swadm link apply command #134
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c59931f
structopt -> clap, bump rust toolchain
rcgoodfellow d5df0d3
feed clippy
rcgoodfellow 89c605a
feed edition
rcgoodfellow 29886bb
feed edition
rcgoodfellow 55ddc57
moar clippy
rcgoodfellow e50a2ef
various clap fixes/cleanup
rcgoodfellow 36cacf2
feed linux clippy
rcgoodfellow ee9ef4c
stub clippy
rcgoodfellow ba87b2c
chaos clippy
rcgoodfellow 8e40c2c
softnpu clippy
rcgoodfellow 66a4660
cargo fmt
rcgoodfellow ceb9b01
fix counters test
rcgoodfellow 40917af
add port settings apply method to swadm
rcgoodfellow d836f28
test flags fixup
rcgoodfellow bf62dc3
fix aliases
rcgoodfellow ed2e1cb
target rust 1.88 instead of 1.90
rcgoodfellow 82d255f
rebase fixup
rcgoodfellow 8db60d6
rebase clippy rage
rcgoodfellow 3e9b28b
ugh
rcgoodfellow ccfa818
back to 1.90
rcgoodfellow 9c68ec2
r#gen -> generate/generation
rcgoodfellow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| [package] | ||
| version = "0.0.1" | ||
| name = "aal_macros" | ||
| edition = "2021" | ||
| edition = "2024" | ||
|
|
||
| [lib] | ||
| proc-macro = true | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| [package] | ||
| name = "asic" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
| edition = "2024" | ||
|
|
||
| [features] | ||
| tofino_asic = [ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ use tokio::sync::mpsc; | |
| use aal::{AsicError, AsicResult, PortUpdate}; | ||
|
|
||
| use crate::tofino_asic::genpd::*; | ||
| use crate::tofino_asic::{bf_status_t, CheckError, TofinoFamily}; | ||
| use crate::tofino_asic::{CheckError, TofinoFamily, bf_status_t}; | ||
|
|
||
| // State needed to allow callbacks from the SDE to communicate with the | ||
| // mainline dpd code. | ||
|
|
@@ -190,7 +190,7 @@ pub(crate) fn send_port_update(callback: &str, update: PortUpdate) { | |
| // callback will generally be a no-op. The only exception would be if somebody | ||
| // were using the bf cli to manipulate ports, at which point all bets are off as | ||
| // to what's happening with the port. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. really? Huh. |
||
| #[no_mangle] | ||
| #[unsafe(no_mangle)] | ||
| extern "C" fn port_admin_state_cb( | ||
| dev_id: bf_dev_id_t, | ||
| port: bf_dev_port_t, | ||
|
|
@@ -214,7 +214,7 @@ extern "C" fn port_admin_state_cb( | |
| } | ||
|
|
||
| // Called whenever a port's link state changes between up and down. | ||
| #[no_mangle] | ||
| #[unsafe(no_mangle)] | ||
| extern "C" fn port_status_int_cb( | ||
| dev_id: bf_dev_id_t, | ||
| port: bf_dev_port_t, | ||
|
|
@@ -238,7 +238,7 @@ extern "C" fn port_status_int_cb( | |
| } | ||
|
|
||
| // Called whenever a port's presence-detect bit changes | ||
| #[no_mangle] | ||
| #[unsafe(no_mangle)] | ||
| extern "C" fn port_presence_cb( | ||
| dev_id: bf_dev_id_t, | ||
| port: bf_dev_port_t, | ||
|
|
@@ -270,7 +270,7 @@ static mut TOFINO_FAMILY: Option<TofinoFamily> = None; | |
| // This gets called when a tofino device is added to the bf_switchd | ||
| // infrastructure in the SDE. This should happen exactly once, when we call | ||
| // bf_drv_init() below. We take this opportunity to do some basic sanity tests. | ||
| #[no_mangle] | ||
| #[unsafe(no_mangle)] | ||
| extern "C" fn device_add_cb( | ||
| dev_id: bf_dev_id_t, | ||
| dev_family: bf_dev_family_t, | ||
|
|
@@ -329,7 +329,7 @@ pub fn register_handler( | |
| None => Err(AsicError::Uninitialized( | ||
| "register_handler() called with no callback state".into(), | ||
| )), | ||
| Some(ref mut cb) => { | ||
| Some(cb) => { | ||
| cb.update_tx = Some(update_tx); | ||
| Ok(()) | ||
| } | ||
|
|
@@ -406,7 +406,7 @@ pub fn bf_init( | |
| return Err(crate::tofino_asic::sde_error( | ||
| "initializing bf context", | ||
| rval, | ||
| )) | ||
| )); | ||
| } | ||
| } | ||
| }; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is weird. I guess it's because
ActionArgcontainsIdent<'a>? I wonder whyIdenthas a lifetime. Hmm. Not for today.