From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matan Barak Subject: Re: [PATCH V5 for-next 1/4] IB/core: Add receive Flow Steering support Date: Tue, 27 Aug 2013 20:10:05 +0300 Message-ID: <521CDD6D.3000404@mellanox.com> References: <1376477911-13828-1-git-send-email-ogerlitz@mellanox.com> <1376477911-13828-2-git-send-email-ogerlitz@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roland Dreier Cc: Or Gerlitz , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Hadar Hen Zion , Shawn Bohrer , Sean Hefty , Tzahi Oved , Yishai Hadas List-Id: linux-rdma@vger.kernel.org On 26/8/2013 10:07 PM, Roland Dreier wrote: > On Wed, Aug 14, 2013 at 3:58 AM, Or Gerlitz wrote: >> +struct _ib_flow_spec { > > Just out of curiousity, why does this structure name start with "_"? > In fact why have the struct at all, since all it's doing is wrapping > an anonymous union? Does the following work: > > +union ib_flow_spec { > + struct { > + enum ib_flow_spec_type type; > + u16 size; > + }; > + struct ib_flow_spec_eth eth; > + struct ib_flow_spec_ipv4 ipv4; > + struct ib_flow_spec_tcp_udp tcp_udp; > + }; > +}; > > If that works, then that seems a lot nicer to me... > > - R. > There's no real good reason for that. The struct isn't needed and we'll definitely change that for V6. - Matan -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html