From: Martin Varghese <martinvarghesenokia@gmail.com>
To: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, pshelar@ovn.org,
scott.drennan@nokia.com, jbenc@redhat.com,
martin.varghese@nokia.com
Subject: Re: [PATCH net-next v3 3/3] openvswitch: New MPLS actions for layer 2 tunnelling
Date: Tue, 17 Dec 2019 22:45:39 +0530 [thread overview]
Message-ID: <20191217171539.GA16538@martin-VirtualBox> (raw)
In-Reply-To: <20191216161355.0d37a897@cakuba.netronome.com>
On Mon, Dec 16, 2019 at 04:13:55PM -0800, Jakub Kicinski wrote:
> On Mon, 16 Dec 2019 19:33:43 +0530, Martin Varghese wrote:
> > diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h
> > index a87b44c..b7221ad 100644
> > --- a/include/uapi/linux/openvswitch.h
> > +++ b/include/uapi/linux/openvswitch.h
> > @@ -673,6 +673,25 @@ struct ovs_action_push_mpls {
> > };
> >
> > /**
> > + * struct ovs_action_ptap_push_mpls - %OVS_ACTION_ATTR_PTAP_PUSH_MPLS action
> > + * argument.
> > + * @mpls_lse: MPLS label stack entry to push.
> > + * @mpls_ethertype: Ethertype to set in the encapsulating ethernet frame.
> > + * @l2_tun: Flag to specify the place of insertion of MPLS header.
> > + * When true, the MPLS header will be inserted at the start of the packet.
> > + * When false, the MPLS header will be inserted at the start of the l3 header.
> > + *
> > + * The only values @mpls_ethertype should ever be given are %ETH_P_MPLS_UC and
> > + * %ETH_P_MPLS_MC, indicating MPLS unicast or multicast. Other are rejected.
> > + */
> > +struct ovs_action_ptap_push_mpls {
> > + __be32 mpls_lse;
> > + __be16 mpls_ethertype; /* Either %ETH_P_MPLS_UC or %ETH_P_MPLS_MC */
> > + bool l2_tun;
>
> In file included from <command-line>:32:
> ./usr/include/linux/openvswitch.h:674:2: error: unknown type name ‘bool’
> 674 | bool l2_tun;
> | ^~~~
> make[3]: *** [usr/include/linux/openvswitch.hdrtest] Error 1
>
Does that mean bool cannot be used in interface header files ? but what is
the alternative u8?
> > +};
> > +
> > +
>
> Why the double new line? Please use checkpatch --strict.
Noted
Thanks for your time.
next prev parent reply other threads:[~2019-12-17 17:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 14:02 [PATCH net-next v3 0/3] New openvswitch MPLS actions for layer 2 tunnelling Martin Varghese
2019-12-16 14:02 ` [PATCH net-next v3 1/3] net: skb_mpls_push() modified to allow MPLS header push at start of packet Martin Varghese
2019-12-16 14:03 ` [PATCH net-next v3 2/3] net: Rephrased comments section of skb_mpls_pop() Martin Varghese
2019-12-16 14:03 ` [PATCH net-next v3 3/3] openvswitch: New MPLS actions for layer 2 tunnelling Martin Varghese
2019-12-17 0:13 ` Jakub Kicinski
2019-12-17 17:15 ` Martin Varghese [this message]
2019-12-17 17:30 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191217171539.GA16538@martin-VirtualBox \
--to=martinvarghesenokia@gmail.com \
--cc=davem@davemloft.net \
--cc=jakub.kicinski@netronome.com \
--cc=jbenc@redhat.com \
--cc=martin.varghese@nokia.com \
--cc=netdev@vger.kernel.org \
--cc=pshelar@ovn.org \
--cc=scott.drennan@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox