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

Ops vi #30

Merged
merged 5 commits into from
Apr 15, 2016
Merged

Ops vi #30

merged 5 commits into from
Apr 15, 2016

Conversation

srikrishnagopu
Copy link
Collaborator

No description provided.

krishna added 3 commits April 14, 2016 10:42
Conflicts:
	p4src/includes/parser.p4
	p4src/switch.p4
	p4src/switch_config.p4
	switchapi/src/switch_init.c
@srikrishnagopu
Copy link
Collaborator Author

@ vivekramamoorthy - switch changes for faspath lookup

/*
* TODO: bypass system acl for all cpu packets
*/
cpu_header->reason_code |= 0x20;
cpu_header->reason_code = htons(cpu_header->reason_code);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like it is not TODO anymore? Just remove "TODO: ".

}

if (rx_info->vlan_action == SWITCH_PACKET_VLAN_ADD) {
memcpy(in_packet, packet, packet_size);
Copy link
Collaborator

Choose a reason for hiding this comment

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

performance - un-necessary pkt copy. Use else condition to copy the entire packet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@srikrishnagopu srikrishnagopu merged commit 567bcb8 into ops Apr 15, 2016
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