MPLS Push action

Thomas Monjalon thomas at monjalon.net
Mon Mar 3 20:25:03 CET 2025


Hi,

This is the related code:

/**
 * RTE_FLOW_ACTION_TYPE_OF_PUSH_MPLS
 *
 * Implements OFPAT_PUSH_MPLS ("push a new MPLS tag") as defined by the
 * OpenFlow Switch Specification.
 */
struct rte_flow_action_of_push_mpls {
    rte_be16_t ethertype; /**< EtherType. */
};


> On Mon, Mar 3, 2025 at 8:02 AM Kishore Padmanabha
> <kishore.padmanabha at broadcom.com> wrote:
> >
> > Hi,
> >
> > Anyone has any inputs on this. Or should I add new CLI commands in testpmd to support action for push MPLS tag.

This action was designed as an OpenFlow implementation.
Is what you require an OpenFlow spec?
If yes, we may consider an update,
if no, we should create a new action.

> >
> > Thanks,
> >
> > Kishore
> >
> > From: Kishore Padmanabha <kishore.padmanabha at broadcom.com>
> > Sent: Thursday, February 27, 2025 6:35 PM
> > To: 'dev at dpdk.org' <dev at dpdk.org>
> > Subject: MPLS Push action
> >
> > Hi,
> >
> > When MPLS push action is used, using testpmd action  of_push_mpls, it accepts the ethertype only. How do I specify the MPLS label and other fields for the MPLS header to be added ? In the doc, in section 7.2.3.7 there is mention of OFXPMT_OFB_MPLS_LABEL and other MPLS fields, but I could not find that in dpdk implementation.

What is this documentation?
Please provide a link.








More information about the dev mailing list