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

api: ofdpa: add functions to configure per port learning #11

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/ofdpa.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ service OfdpaRpc {
rpc ofdpaSourceMacLearningSet(SrcMacLearning) returns (OfdpaStatus) {}
rpc ofdpaSourceMacLearningGet(Empty) returns (SrcMacLearning) {}

rpc ofdpaPortSourceMacLearningSet(PortSrcMacLearning) returns (OfdpaStatus) {}
rpc ofdpaPortSourceMacLearningGet(PortNum) returns (PortSrcMacLearning) {}
rpc ofdpaPortSourceMacMoveLearningSet(PortSrcMacLearning) returns (OfdpaStatus) {}
rpc ofdpaPortSourceMacMoveLearningGet(PortNum) returns (PortSrcMacLearning) {}

rpc ofdpaMirrorSourcePortAdd(MirrorSourcePortAdd) returns (OfdpaStatus) {}
rpc ofdpaMirrorSourcePortDelete(MirrorSourcePortDelete) returns (OfdpaStatus) {}

Expand Down Expand Up @@ -92,6 +97,19 @@ message SrcMacLearning {
bool enable = 1;
}

message PortSrcMacLearning {
enum SrcMacLearnMode {
SRC_MAC_LEARN_NONE = 0;
SRC_MAC_LEARN_ARL = 1;
SRC_MAC_LEARN_CPU = 2;
SRC_MAC_LEARN_FWD = 4;
SRC_MAC_LEARN_PENDING = 8;
}

uint32 port_num = 1;
uint32 l2_learn = 2;
}

message TunnelId {
uint32 tunnel_id = 1;
}
Expand Down