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

[vslib]Add MACsec Forwarder #714

Merged
merged 2 commits into from
Nov 20, 2020
Merged

Conversation

Pterosaur
Copy link
Contributor

MACsec Forwarder is for forwarding plaintext data traffic from MACsec device to tap, Ethernet, device.

The design document can be found at https://github.com/Azure/SONiC/blob/88c7ada900051f73a29aaf4a28bcaf5062ae7305/doc/macsec/MACsec_hld.md#345-virtual-macsec-sai

Signed-off-by: Ze Gan ganze718@gmail.com

@Pterosaur Pterosaur marked this pull request as draft November 19, 2020 05:15
Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur marked this pull request as ready for review November 19, 2020 05:21

if (write(m_tapfd, buffer, static_cast<int>(size)) < 0)
{

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary empty line

int m_tapfd;
int m_macsecfd;

const std::string m_macsec_interface_name;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try keep naming members consistent like m_macsecInterfaceName, m_runThread, m_exitEvent

please revisit other classes to see convention

Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur requested a review from kcudnik November 20, 2020 08:34
@kcudnik kcudnik merged commit a5cfa36 into sonic-net:master Nov 20, 2020
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
MACsec Forwarder is for forwarding plaintext data traffic from MACsec device to tap, Ethernet, device.
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