netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux 2.6.35/TIPC 2.0 ABI breaking changes
@ 2010-10-20  1:09 nhorman
  0 siblings, 0 replies; 29+ messages in thread
From: nhorman @ 2010-10-20  1:09 UTC (permalink / raw)
  To: Leandro Lucarella
  Cc: jon.maloy, netdev, linux-kernel, tipc-discussion, David Miller


Yeah. I might have missed that.  Although it did give me a.success message when I ran the test.  That's why I asked.Dave not to pull it yet :).  Well look at it.more closely in the am
Neil

Sent from my Verizon Wireless Phone

----- Reply message -----
From: "Leandro Lucarella" <luca@llucax.com.ar>
Date: Tue, Oct 19, 2010 4:43 pm
Subject: Linux 2.6.35/TIPC 2.0 ABI breaking changes
To: "Neil Horman" <nhorman@tuxdriver.com>
Cc: "David Miller" <davem@davemloft.net>, <paul.gortmaker@windriver.com>, <jon.maloy@ericsson.com>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <tipc-discussion@lists.sourceforge.net>


Neil Horman, el 19 de octubre a las 16:18 me escribiste:
> Hey all-
> 	Heres what I have so far.  Dave as a heads up please don't apply this
> yet.  I'd like to go over it a bit more and be sure of the implications here
> before I post it for inclusion officially.  I wanted Leandro to have a copy
> though so he could confirm functionality for us.  Leandro, This patch lets me
> pass the tipc test code for TIPC 1.6 that you posted earlier this morning.  If
> you could confirm that it works for you that would be grand.  While your doing
> that, I want to read over the spec for TIPC and make sure that I'm not breaking
> anything new with this patch.

Thanks for the quick response. I didn't tried the patch yet, but I think
spotted an error:

> diff --git a/include/linux/tipc.h b/include/linux/tipc.h
> index 181c8d0..d8de884 100644
> --- a/include/linux/tipc.h
> +++ b/include/linux/tipc.h
> @@ -127,9 +127,10 @@ static inline unsigned int tipc_node(__u32 addr)
>   * TIPC topology subscription service definitions
>   */
>  
> -#define TIPC_SUB_SERVICE     	0x00  	/* Filter for service availability    */
> -#define TIPC_SUB_PORTS     	0x01  	/* Filter for port availability  */
> +#define TIPC_SUB_SERVICE     	0x01  	/* Filter for service availability    */
> +#define TIPC_SUB_PORTS     	0x02  	/* Filter for port availability  */
>  #define TIPC_SUB_CANCEL         0x04    /* Cancel a subscription         */
> +#define TIPC_SUB_MASK		(TIPC_SUB_SERVICE|TIPC_SUB_PORTS|TIPC_SUB_CANCEL)
>  
>  #define TIPC_WAIT_FOREVER	~0	/* timeout for permanent subscription */
>  

The values of TIPC_SUB_SERVICE and TIPC_SUB_PORTS seem to be swapped
compared to the old (TIPC 1.6) values:
#define TIPC_SUB_PORTS     	0x01  	/* filter for port availability */
#define TIPC_SUB_SERVICE     	0x02  	/* filter for service availability */

You might missed this error when trying the code I posted earlier (which
BTW are the official TIPC demos) because the change of behaviour when
using TIPC_SUB_SERVICE and TIPC_SUB_PORTS is very subtle (the former
reports only the first published port name that matches, and the later
all the published ports that match).

I'll test the patch tomorrow morning (ART).

Thanks again.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Long you live and high you fly
And smiles you'll give and tears you'll cry
And all you touch and all you see
Is all your life will ever be.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2010-10-20 22:59 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20100927163823.GD2834@integratech.com.ar>
     [not found] ` <29C1DC0826876849BDD9F1C67ABA2943090B67EC@ala-mail09.corp.ad.wrs.com>
     [not found]   ` <20100929153805.GG2834@integratech.com.ar>
     [not found]     ` <29C1DC0826876849BDD9F1C67ABA29430914AC18@ala-mail09.corp.ad.wrs.com>
     [not found]       ` <20101001150034.GS8781@llucax.com.ar>
     [not found]         ` <0434463FDA60A94FA978ACA44617682DEE843EDD79@EUSAACMS0702.eamcs.ericsson.se>
     [not found]           ` <20101001162346.GV8781@llucax.com.ar>
     [not found]             ` <4CA69F18.7000005@amln.net>
     [not found]               ` <0434463FDA60A94FA978ACA44617682DEE8446A03B@EUSAACMS0702.eamcs.ericsson.se>
2010-10-18 15:04                 ` Linux 2.6.35/TIPC 2.0 ABI breaking changes [was: TIPC 2.0 and TIPC_SUB_SERVICE] Leandro Lucarella
     [not found]                 ` <20101018150422.GV8781@llucax.com.ar>
2010-10-18 18:46                   ` Leandro Lucarella
2010-10-18 20:42                     ` Paul Gortmaker
2010-10-18 22:17                       ` Linux 2.6.35/TIPC 2.0 ABI breaking changes David Miller
2010-10-18 23:11                         ` Paul Gortmaker
2010-10-18 23:38                           ` Leandro Lucarella
2010-10-18 23:45                           ` Neil Horman
2010-10-19  2:16                             ` Leandro Lucarella
2010-10-19  8:16                               ` David Miller
2010-10-19 11:04                                 ` Neil Horman
2010-10-19 11:06                                   ` David Miller
2010-10-19 13:19                                   ` Leandro Lucarella
2010-10-19 13:28                                     ` Neil Horman
2010-10-19 20:18                                     ` Neil Horman
2010-10-19 20:43                                       ` Leandro Lucarella
2010-10-19 22:03                                         ` Leandro Lucarella
2010-10-20 17:20                                       ` Leandro Lucarella
2010-10-20 17:57                                         ` Jon Maloy
2010-10-20 18:04                                           ` Neil Horman
2010-10-20 18:10                                             ` Jon Maloy
2010-10-20 18:28                                               ` Leandro Lucarella
2010-10-20 19:23                                                 ` Leandro Lucarella
2010-10-20 22:59                                                   ` Leandro Lucarella
2010-10-20 18:24                                           ` Leandro Lucarella
2010-10-20 18:37                                             ` Jon Maloy
2010-10-20 18:44                                               ` Leandro Lucarella
2010-10-20 17:57                                         ` Neil Horman
2010-10-18 23:58                         ` Alan Cox
2010-10-20  1:09 nhorman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).