[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161012.015022.2273537782016406180.davem@davemloft.net>
Date: Wed, 12 Oct 2016 01:50:22 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: gorcunov@...il.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com, jhs@...atatu.com,
dsa@...ulusnetworks.com, linux-kernel@...r.kernel.org,
kuznet@....inr.ac.ru, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, avagin@...nvz.org, stephen@...workplumber.org
Subject: Re: [PATCH v6] net: ip, diag -- Add diag interface for raw sockets
From: Cyrill Gorcunov <gorcunov@...il.com>
Date: Thu, 6 Oct 2016 13:00:55 +0300
> v6:
> - use sdiag_raw_protocol() helper which will access @pad
> structure used for raw sockets protocol specification:
> we can't simply rename this member without breaking uapi.
Macros that look like function calls and are also lvalues tend to be
troublesome.
I know what you're trying to achieve, you want a named way to access
this so that the intent and semantics are clear.
But I'd rather you do something that provides a way by which normal
struct member accesses do the job, and your earlier patches achieved
this.
Powered by blists - more mailing lists