lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <VI1PR0402MB280005DA3369B45E551246B0E0680@VI1PR0402MB2800.eurprd04.prod.outlook.com>
Date:   Tue, 22 Oct 2019 09:47:07 +0000
From:   Ioana Ciornei <ioana.ciornei@....com>
To:     Andrew Lunn <andrew@...n.ch>
CC:     "davem@...emloft.net" <davem@...emloft.net>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        Laurentiu Tudor <laurentiu.tudor@....com>,
        "f.fainelli@...il.com" <f.fainelli@...il.com>,
        "rmk@...linux.org.uk" <rmk@...linux.org.uk>
Subject: RE: [PATCH net-next 2/4] bus: fsl-mc: add the fsl_mc_get_endpoint
 function

> Hi Ioana

Hi Andrew, 

> 
> > +/**
> > + * dprc_get_connection() - Get connected endpoint and link status if
> connection
> > + *			exists.
> > + * @mc_io:	Pointer to MC portal's I/O object
> > + * @cmd_flags:	Command flags; one or more of 'MC_CMD_FLAG_'
> > + * @token:	Token of DPRC object
> > + * @endpoint1:	Endpoint 1 configuration parameters
> > + * @endpoint2:	Returned endpoint 2 configuration parameters
> > + * @state:	Returned link state:
> > + *		1 - link is up;
> > + *		0 - link is down;
> > + *		-1 - no connection (endpoint2 information is irrelevant)
> > + *
> > + * Return:     '0' on Success; -ENAVAIL if connection does not exist.
> 
> #define	ENAVAIL		119	/* No XENIX semaphores
> available */
> 
> This is not a semaphore.
> 
> How about
> 
> #define	ENOTCONN	107	/* Transport endpoint is not
> connected */
> 
> 	Andrew

ENOTCONN is a better fit here. Will change. 

Thanks,
Ioana

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ