On Sat, Oct 27, 2012 at 01:07:35PM -0700, Pravin B Shelar wrote:
> Signed-off-by: Pravin B Shelar <[email protected]>
...
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
> +#define NETLINK_CB_PORT_ID(skb) (NETLINK_CB((skb)).portid)
> +#else
> +#define NETLINK_CB_PORT_ID(skb) (NETLINK_CB((skb)).pid)
> +#endif
I'd be at least tempted to write:
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)
#define portid pid
#endif
and similarly for snd_portid vs. snd_pid in genetlink.h, which would
skip the indirection macro.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev