Skip to content

Commit

Permalink
api: ofdpa: add functions to configure per port learning
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Gorski <[email protected]>
  • Loading branch information
KanjiMonster committed Jan 16, 2025
1 parent 060ed46 commit 67313e4
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 67313e4

Please sign in to comment.