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

Enable set_field with Metadata register #16

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

Commits on Apr 24, 2022

  1. Enable set_field with Metadata register

    WriteMetadata is write-action instruction which will be applied later
    than apply-action. In some case, we need use resubmit to do pipeline in
    the same table and set Metadata before resubmit at the same time.
    WriteMetadata cannot do the job. We need enable set_field for Metadata
    register.
    
    Actually, WriteMetadata do the same thing with set_field Metadata
    register in the OvS. From OpenFlow 1.5, Metadata register also can be
    used with set_field to set, not stricted only using WriteMetadata instruction.
    
    After this patch, ofnet can support WriteMetadata and set_field for
    Metadata meanwhile. Caller can use SetMetadata() or WriteMetadata() API
    to implement WriteMetadata action, and use SetMetadataAction() and
    ApplyAction() to implement set_field for Metadata.
    
    Signed-off-by: Jinjun Gao <[email protected]>
    commandgjj committed Apr 24, 2022
    Configuration menu
    Copy the full SHA
    350e03f View commit details
    Browse the repository at this point in the history