Skip to content

Ops vi#30

Merged
srikrishnagopu merged 5 commits intoopsfrom
ops_vi
Apr 15, 2016
Merged

Ops vi#30
srikrishnagopu merged 5 commits intoopsfrom
ops_vi

Conversation

@srikrishnagopu
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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: ".

Comment thread switchapi/src/switch_packet.c Outdated
}

if (rx_info->vlan_action == SWITCH_PACKET_VLAN_ADD) {
memcpy(in_packet, packet, packet_size);
Copy link
Copy Markdown
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
Copy Markdown
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