From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dennis Dalessandro Subject: Re: [PATCH rdma-next V2 20/27] RDMA: Simplify get firmware interface Date: Mon, 17 Jul 2017 10:48:22 -0400 Message-ID: <4c9322da-8370-305e-0e6d-f79f931c7f8d@intel.com> References: <20170703062830.30361-1-leon@kernel.org> <20170703062830.30361-21-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Stephen Hemminger , Ariel Almog , Linux Netdev , Leon Romanovsky To: Leon Romanovsky , Doug Ledford Return-path: In-Reply-To: <20170703062830.30361-21-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Content-Language: en-US Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 7/3/2017 2:28 AM, Leon Romanovsky wrote: > From: Leon Romanovsky > > There is a need to forward FW version to user space > application through RDMA netlink. In order to make it safe, there > is need to declare nla_policy and limit the size of FW string. > > The new define IB_FW_VERSION_NAME_MAX will limit the size of > FW version string. That define was chosen to be equal to > ETHTOOL_FWVERS_LEN, because many drivers anyway are limited > by that value indirectly. > > The introduction of this define allows us to remove the string size > from get_fw_str function signature. > > Signed-off-by: Leon Romanovsky Reviewed-by: Dennis Dalessandro -- 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