* [PATCH] net headers: export dcbnl.h
@ 2009-02-27 0:46 Chris Leech
2009-02-27 5:55 ` Sam Ravnborg
0 siblings, 1 reply; 4+ messages in thread
From: Chris Leech @ 2009-02-27 0:46 UTC (permalink / raw)
To: linux-netdev, linux-kernel
The DCB netlink interface is required for building the userspace tools
available at e1000.sourceforge.net
Signed-off-by: Chris Leech <christopher.leech@intel.com>
---
include/linux/Kbuild | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index b97cdc5..106c3ba 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -52,6 +52,7 @@ header-y += const.h
header-y += cgroupstats.h
header-y += cramfs_fs.h
header-y += cycx_cfm.h
+header-y += dcbnl.h
header-y += dlmconstants.h
header-y += dlm_device.h
header-y += dlm_netlink.h
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net headers: export dcbnl.h
2009-02-27 0:46 [PATCH] net headers: export dcbnl.h Chris Leech
@ 2009-02-27 5:55 ` Sam Ravnborg
2009-02-27 10:46 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2009-02-27 5:55 UTC (permalink / raw)
To: Chris Leech; +Cc: linux-netdev, linux-kernel
On Thu, Feb 26, 2009 at 04:46:35PM -0800, Chris Leech wrote:
> The DCB netlink interface is required for building the userspace tools
> available at e1000.sourceforge.net
Hmmm, is that file ready for export....
>From dcbnl.h:
#ifndef __LINUX_DCBNL_H__
#define __LINUX_DCBNL_H__
#define DCB_PROTO_VERSION 1
struct dcbmsg {
unsigned char dcb_family;
__u8 cmd;
__u16 dcb_pad;
};
1) It uses __u8/__u16 so it would be nice it is included <linux/types.h>
so these are actually defined.
2) Why does it use "unsigned char" for one member and __u8 for another.
It looks inconsistent.
We export headers that are much worse but we better raise the bar a little.
Sam
>
> Signed-off-by: Chris Leech <christopher.leech@intel.com>
> ---
>
> include/linux/Kbuild | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/Kbuild b/include/linux/Kbuild
> index b97cdc5..106c3ba 100644
> --- a/include/linux/Kbuild
> +++ b/include/linux/Kbuild
> @@ -52,6 +52,7 @@ header-y += const.h
> header-y += cgroupstats.h
> header-y += cramfs_fs.h
> header-y += cycx_cfm.h
> +header-y += dcbnl.h
> header-y += dlmconstants.h
> header-y += dlm_device.h
> header-y += dlm_netlink.h
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net headers: export dcbnl.h
2009-02-27 5:55 ` Sam Ravnborg
@ 2009-02-27 10:46 ` David Miller
2009-02-27 18:16 ` Chris Leech
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-02-27 10:46 UTC (permalink / raw)
To: sam; +Cc: christopher.leech, linux-netdev, linux-kernel
From: Sam Ravnborg <sam@ravnborg.org>
Date: Fri, 27 Feb 2009 06:55:06 +0100
> On Thu, Feb 26, 2009 at 04:46:35PM -0800, Chris Leech wrote:
> > The DCB netlink interface is required for building the userspace tools
> > available at e1000.sourceforge.net
>
> Hmmm, is that file ready for export....
>
> >From dcbnl.h:
> #ifndef __LINUX_DCBNL_H__
> #define __LINUX_DCBNL_H__
>
> #define DCB_PROTO_VERSION 1
>
> struct dcbmsg {
> unsigned char dcb_family;
> __u8 cmd;
> __u16 dcb_pad;
> };
>
> 1) It uses __u8/__u16 so it would be nice it is included <linux/types.h>
> so these are actually defined.
> 2) Why does it use "unsigned char" for one member and __u8 for another.
> It looks inconsistent.
>
> We export headers that are much worse but we better raise the bar a little.
Agreed, we should sort out these issues before exporting.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net headers: export dcbnl.h
2009-02-27 10:46 ` David Miller
@ 2009-02-27 18:16 ` Chris Leech
0 siblings, 0 replies; 4+ messages in thread
From: Chris Leech @ 2009-02-27 18:16 UTC (permalink / raw)
To: David Miller; +Cc: sam, netdev, lkml
On Fri, 2009-02-27 at 02:46 -0800, David Miller wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
> Date: Fri, 27 Feb 2009 06:55:06 +0100
>
> > On Thu, Feb 26, 2009 at 04:46:35PM -0800, Chris Leech wrote:
> > > The DCB netlink interface is required for building the userspace tools
> > > available at e1000.sourceforge.net
> >
> > Hmmm, is that file ready for export....
> >
> > >From dcbnl.h:
> > #ifndef __LINUX_DCBNL_H__
> > #define __LINUX_DCBNL_H__
> >
> > #define DCB_PROTO_VERSION 1
> >
> > struct dcbmsg {
> > unsigned char dcb_family;
> > __u8 cmd;
> > __u16 dcb_pad;
> > };
> >
> > 1) It uses __u8/__u16 so it would be nice it is included <linux/types.h>
> > so these are actually defined.
OK, I'll send again with a patch to add <linux/types.h>
> > 2) Why does it use "unsigned char" for one member and __u8 for another.
> > It looks inconsistent.
My guess is that the first member was made to be unsigned char to match
struct rtgenmsg, but other rtnetlink users define family as __u8
(fib_rule_hdr, ndmsg, ndtmsg) so it should be OK to change it.
> > We export headers that are much worse but we better raise the bar a little.
>
> Agreed, we should sort out these issues before exporting.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-27 18:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 0:46 [PATCH] net headers: export dcbnl.h Chris Leech
2009-02-27 5:55 ` Sam Ravnborg
2009-02-27 10:46 ` David Miller
2009-02-27 18:16 ` Chris Leech
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).