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

[PINS] Add submit to ingress port to copp_cfg file #9084

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bocon13
Copy link
Contributor

@bocon13 bocon13 commented Oct 27, 2021

Submission containing materials of a third party:
Copyright Google LLC; Licensed under Apache 2.0

Co-authored-by: Glenn Connery gconnery@google.com

Depends on:

Why I did it

Adds support for submit_to_ingress port required for PINS packet out path

More details in this HLD:
https://github.com/pins/SONiC/blob/master/doc/pins/Packet_io.md

How to verify it

Build the SONiC image and verify that the submit_to_ingress netdev is created

Which release branch to backport (provide reason below if selected)

None

Description for the changelog

Add submit to ingress port to copp_cfg file

@bocon13 bocon13 requested a review from lguohan as a code owner October 27, 2021 06:38
@donNewtonAlpha donNewtonAlpha force-pushed the pins/submit-to-ingress-port branch from 77db694 to 4523289 Compare October 27, 2021 06:48
@bocon13 bocon13 changed the title Add submit to ingress port to copp_cfg file [PINS] Add submit to ingress port to copp_cfg file Oct 27, 2021
@bocon13
Copy link
Contributor Author

bocon13 commented Oct 27, 2021

cc: @vivekmoorthy @kishanps @prsunny

Copy link
Contributor

@mint570 mint570 left a comment

Choose a reason for hiding this comment

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

lgtm

@bocon13
Copy link
Contributor Author

bocon13 commented Oct 27, 2021

@prsunny this is related to sonic-net/sonic-swss#1952

@kishanps
Copy link

lgtm

@mint570 How do we get these changes back into our repo ?

Comment on lines +64 to +65
"trap.group.send_to_ingress" : {
"submit_to_ingress_name" : "send_to_ingress"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we move this to the CONFIG_DB port table?
Issue: we can't specify that this is a host interface for CPU there today.

Can we move this to the P4Orch constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CoPP group has policers and other things. It doesn't really fit here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Proposal for MVP: put it in P4Orch
Longer term: make this part of the PORT_TABLE

@donNewtonAlpha donNewtonAlpha force-pushed the pins/submit-to-ingress-port branch from 4523289 to f890426 Compare October 30, 2021 03:17
Submission containing materials of a third party:
    Copyright Google LLC; Licensed under Apache 2.0

Co-authored-by: Glenn Connery <gconnery@google.com>

Signed-off-by: Brian O'Connor <bocon@opennetworking.org>
@donNewtonAlpha donNewtonAlpha force-pushed the pins/submit-to-ingress-port branch from f890426 to f9e7e21 Compare October 30, 2021 03:20
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.

3 participants