From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC48746341; Tue, 4 Mar 2025 18:48:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ABEE2402EB; Tue, 4 Mar 2025 18:48:33 +0100 (CET) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by mails.dpdk.org (Postfix) with ESMTP id 1573B402E2 for ; Tue, 4 Mar 2025 18:48:32 +0100 (CET) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5e0b70fb1daso10258919a12.1 for ; Tue, 04 Mar 2025 09:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1741110512; x=1741715312; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7RYLkVuSiNZp0o5AOgierDh884RKPp4U0BkQFhC2uQ4=; b=NikwLo4EbwS2YRKxOMBaUNtd90NuZjf3KTL9w+1SyYzbFm4M9vrQaQVhZxBgRw4Vhe aoZNfQjuf6V7+NrGUpfjbQO1Mt1nV+8pwUiYo/DwCHb7TLCCsI8uAyh5vGcrxrYkXPc6 WYZndc8UKR+JW37J4oqKA0DH7V4b4y50Ewj3A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741110512; x=1741715312; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7RYLkVuSiNZp0o5AOgierDh884RKPp4U0BkQFhC2uQ4=; b=AcmTMjjRpuRH0fmJrprzYRLnlMfYMQjxvRDqCeDh57qBcR3ze6W3ijqn3jWmlBx1Ph qI8HRX/lKcCzkDog8twCS2+3f1yuaGdRxMhWsQn7Es8B1sIFRK3W6YdFidRQFE7Rzf8S yHhPWx/vHwlllrwFhQsRKl/Aejqn0C3xFEbCvf/8Xa58yB7HK9QFLVAxpvnU5fIiKDQ1 DzO1/lgkiEsI6BiD2DPKCrxEf5lbPT+k0ouLYEq0j7ni84SdHrSDVnfKWI2CUqPLIiVB ZPHXk5X9+ncvof0cndNW1fBnG8oKfQ0htb4Wd2obvqcAxfg0r70ZTV5Url/DYwI/+0Dx XqNQ== X-Forwarded-Encrypted: i=1; AJvYcCU2gPx0rPqeGUaoJ4yYhBkELkce+2Wr1f1J5TDtc4BAyEQ65DR66wucHM0giBi2NiCAMao=@dpdk.org X-Gm-Message-State: AOJu0Yx7Pk0IFSkg0o++6D0OEZwgaWgVOpZCqIyRm/miKX9seVloizA5 FAK9vd5RhAvFvnR0QLdWjM6vAnxpQEDcdTM/0RIt6IMlAUTCJR9aS/RczV9mBDenIi+Aaz8yvmF +IIDyex/q5D/WIk5ALic5MTHDxCQ55bI3VXWC1XUJLI0jfQgrm9y9KT+JqilQeMDpgz6cNE3Ohm HNZgfr X-Gm-Gg: ASbGncspK5hUZMK9WO4Rl77LOfdOxG32k5+JMbR+v8kNjS1Zg9A2CdMqCi4KYUPjHb2 /gXxBBfsyRNt4xbVNULf9m3LyNyTTh2YQB7GXvAQFI/bMv1q7po9mogFE1pPq54FcT19dZMpt8H +kxDCoawlcpeCa372UKCUzLnU3k88= X-Google-Smtp-Source: AGHT+IHbrTXj/yi3DGhWJdEi7lG7rnexnQNc4kTr7sIAzQCQD/DimR9MqKnRlAhNsw1J93Pdz6fVcwugfX0SYaI0Rto= X-Received: by 2002:a17:906:478b:b0:ac1:df32:ac27 with SMTP id a640c23a62f3a-ac20dafc617mr14729166b.53.1741110511756; Tue, 04 Mar 2025 09:48:31 -0800 (PST) MIME-Version: 1.0 References: <15378777.dW097sEU6C@thomas> In-Reply-To: <15378777.dW097sEU6C@thomas> From: Kishore Padmanabha Date: Tue, 4 Mar 2025 12:48:14 -0500 X-Gm-Features: AQ5f1JqZYj55L7doH2OWFTCrrIFMZ-7n60u1It0wDcue9pMowVtOFuh6_1tE-uU Message-ID: Subject: Re: MPLS Push action To: Thomas Monjalon Cc: Ajit Khaparde , Ferruh.yigit@xilinx.com, qi.z.zhang@intel.com, dev@dpdk.org, Stephen Hemminger Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000097d61f062f87e150" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --00000000000097d61f062f87e150 Content-Type: multipart/alternative; boundary="0000000000009193d7062f87e16c" --0000000000009193d7062f87e16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Thomas, On Mon, Mar 3, 2025 at 2:25=E2=80=AFPM Thomas Monjalon wrote: > 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. */ > }; > That is correct, it is related to the MPLS push action. > > > > On Mon, Mar 3, 2025 at 8:02=E2=80=AFAM Kishore Padmanabha > > 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. > > The openflow spec https://opennetworking.org/wp-content/uploads/2014/10/openflow-switch-v1.5.= 1.pdf has mention of the MPLS push action but it does not mention how to specify how to configure the mpls label, TC and BOS. > > > > > > Thanks, > > > > > > Kishore > > > > > > From: Kishore Padmanabha > > > Sent: Thursday, February 27, 2025 6:35 PM > > > To: 'dev@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. > > The above label is only mentioned for match and it is documented in https://opennetworking.org/wp-content/uploads/2014/10/openflow-switch-v1.5.= 1.pdf section 7.2.3.7 --=20 This electronic communication and the information and any files transmitted= =20 with it, or attached to it, are confidential and are intended solely for=20 the use of the individual or entity to whom it is addressed and may contain= =20 information that is confidential, legally privileged, protected by privacy= =20 laws, or otherwise restricted from disclosure to anyone else. If you are=20 not the intended recipient or the person responsible for delivering the=20 e-mail to the intended recipient, you are hereby notified that any use,=20 copying, distributing, dissemination, forwarding, printing, or copying of= =20 this e-mail is strictly prohibited. If you received this e-mail in error,= =20 please return the e-mail to the sender, delete it from your computer, and= =20 destroy any printed copy of it. --0000000000009193d7062f87e16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Thomas,

On Mon, Mar 3, 2025 a= t 2:25=E2=80=AFPM Thomas Monjalon <thomas@monjalon.net> wrote:
Hi,

This is the related code:

/**
=C2=A0* RTE_FLOW_ACTION_TYPE_OF_PUSH_MPLS
=C2=A0*
=C2=A0* Implements OFPAT_PUSH_MPLS ("push a new MPLS tag") as def= ined by the
=C2=A0* OpenFlow Switch Specification.
=C2=A0*/
struct rte_flow_action_of_push_mpls {
=C2=A0 =C2=A0 rte_be16_t ethertype; /**< EtherType. */
};
=C2=A0
=C2=A0That is correct, it is relat= ed to the MPLS push action.

=C2=A0
> On Mon, Mar 3, 2025 at 8:02=E2=80=AFAM Kishore Padmanabha
> <kishore.padmanabha@broadcom.com> wrote:
> >
> > Hi,
> >
> > Anyone has any inputs on this. Or should I add new CLI commands i= n 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@broadcom.com> > > Sent: Thursday, February 27, 2025 6:35 PM
> > To: 'dev@dp= dk.org' <dev@d= pdk.org>
> > Subject: MPLS Push action
> >
> > Hi,
> >
> > When MPLS push action is used, using testpmd action=C2=A0 of_push= _mpls, it accepts the ethertype only. How do I specify the MPLS label and o= ther 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 co= uld not find that in dpdk implementation.

What is this documentation?
Please provide a link.

The above label is only mentioned for match and it is= documented in=C2=A0https://opennetworking.org/wp-content= /uploads/2014/10/openflow-switch-v1.5.1.pdf section 7.2.3.7
<= br>

This ele= ctronic communication and the information and any files transmitted with it= , or attached to it, are confidential and are intended solely for the use o= f the individual or entity to whom it is addressed and may contain informat= ion that is confidential, legally privileged, protected by privacy laws, or= otherwise restricted from disclosure to anyone else. If you are not the in= tended recipient or the person responsible for delivering the e-mail to the= intended recipient, you are hereby notified that any use, copying, distrib= uting, dissemination, forwarding, printing, or copying of this e-mail is st= rictly prohibited. If you received this e-mail in error, please return the = e-mail to the sender, delete it from your computer, and destroy any printed= copy of it. --0000000000009193d7062f87e16c-- --00000000000097d61f062f87e150 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQcgYJKoZIhvcNAQcCoIIQYzCCEF8CAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3WMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkw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E71+eY7IXZyt7JOzujKMjBT1ll9ksv900PSfepOhlts+qt39mfsK3GFpWucs5yPQW4QdANh1g QQvpKuVIATCT7bbi97PnmyBbqR4lilWpd720IqWfp2so0ihV+YqcZebbT5leoAa/bHgoDUx+ejzc Uk12jX97cL/DKIHD0pff67TlZq5ZjltzVjTA0XaUzEak9bSqclhSSbSbYHhRDR4syFcEWXQRxou7 RctJp8+CIW2Aci4xggJgMIICXAIBATBrMFsxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxT aWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBSMyBQZXJzb25hbFNpZ24gMiBDQSAy MDIwAgxoJv8P9DUpRlhABNswDQYJYIZIAWUDBAIBBQCggccwLwYJKoZIhvcNAQkEMSIEIPVtXCbw 1dUA0mnMjNJdodxXnFJ6oZFeVG8YVpXo6GeDMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJ KoZIhvcNAQkFMQ8XDTI1MDMwNDE3NDgzMlowXAYJKoZIhvcNAQkPMU8wTTALBglghkgBZQMEASow CwYJYIZIAWUDBAEWMAsGCWCGSAFlAwQBAjAKBggqhkiG9w0DBzALBgkqhkiG9w0BAQcwCwYJYIZI AWUDBAIBMA0GCSqGSIb3DQEBAQUABIIBAJ64qOxUh8vRfWPj/63+2Em6MP32dGJwMCtA2PIawVVH iBEdUrbWq1nV6EHfEaYyEgBTJfHYfnBvaVGc827znW7juxFo9llQzqQ64U5VzdgV7FbWtIBK65rn 0U2lljzYUkHcUPjGXGBCdbbALOBsc7WvUpCOiLzMPnmB7OsRzxRsWpdIj4yDrIE/Gm/qqNjfm98k gzIImMzIYzcnza+AAchtXx/zwW+appEN9onJIpouVHIC6c0kQI6+YrErrGtPkMIPTUWU5f8TJghj qKciyGCJteRl50a419fV+/Y3E/fv/hRNGsmNzAe2kyY+wwsXapXCibco+2xze6iIDsdX1Lk= --00000000000097d61f062f87e150--