From: John Fastabend <hidden> Date: 2011-01-31 22:05:41
The dcb_app protocol field is a __u32 however the 802.1Qaz
specification defines it as a 16 bit field. This patch brings
the structure inline with the spec making it a __u16.
Signed-off-by: John Fastabend <redacted>
---
include/linux/dcbnl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: John Fastabend <hidden> Date: 2011-01-31 22:05:47
Use _safe() version of list iterator macros in dcb_setapp().
Signed-off-by: John Fastabend <redacted>
---
net/dcb/dcbnl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
From: John Fastabend <hidden> Date: 2011-01-31 22:05:52
The app_data priority may not be the same for all net devices.
In order for stacks with application notifiers to identify the
specific net device dcb_app_type should be passed in the ptr.
This allows handlers to use dev_get_by_name() to pin priority
to net devices.
Signed-off-by: John Fastabend <redacted>
---
net/dcb/dcbnl.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
@@ -1613,6 +1613,10 @@ EXPORT_SYMBOL(dcb_getapp);u8dcb_setapp(structnet_device*dev,structdcb_app*new){structdcb_app_type*itr,*tmp;+structdcb_app_typeevent;++memcpy(&event.name,dev->name,sizeof(event.name));+memcpy(&event.app,new,sizeof(event.app));spin_lock(&dcb_lock);/* Search for existing match and replace */
From: David Miller <davem@davemloft.net> Date: 2011-02-01 04:40:29
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:49 -0800
The dcb_app protocol field is a __u32 however the 802.1Qaz
specification defines it as a 16 bit field. This patch brings
the structure inline with the spec making it a __u16.
Signed-off-by: John Fastabend <redacted>
If we're going to do this, please fix this wasteful structure
layout. Put the "protocol" either first, or last, so that the
structure size is 4 bytes, rather than something like 8.
From: David Miller <davem@davemloft.net> Date: 2011-02-01 04:41:38
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:54 -0800
Use _safe() version of list iterator macros in dcb_setapp().
Signed-off-by: John Fastabend <redacted>
Why? It's unnecessary overhead, since we always branch to "out", and
therefore out of the list traversal loop, any time we list_del()
something on the list.
From: David Miller <davem@davemloft.net> Date: 2011-02-01 04:42:32
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:59 -0800
The app_data priority may not be the same for all net devices.
In order for stacks with application notifiers to identify the
specific net device dcb_app_type should be passed in the ptr.
This allows handlers to use dev_get_by_name() to pin priority
to net devices.
Signed-off-by: John Fastabend <redacted>
Given your track record with the previous two patches (ie. they
need work or are nonsense) I want someone who understands this
dcbnl stuff to review this third patch before I'm willing to
apply it.
From: John Fastabend <hidden> Date: 2011-02-05 19:39:13
On 1/31/2011 8:41 PM, David Miller wrote:
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:49 -0800
quoted
The dcb_app protocol field is a __u32 however the 802.1Qaz
specification defines it as a 16 bit field. This patch brings
the structure inline with the spec making it a __u16.
Signed-off-by: John Fastabend <redacted>
If we're going to do this, please fix this wasteful structure
layout. Put the "protocol" either first, or last, so that the
structure size is 4 bytes, rather than something like 8.
From: John Fastabend <hidden> Date: 2011-02-05 19:40:36
On 1/31/2011 8:42 PM, David Miller wrote:
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:54 -0800
quoted
Use _safe() version of list iterator macros in dcb_setapp().
Signed-off-by: John Fastabend <redacted>
Why? It's unnecessary overhead, since we always branch to "out", and
therefore out of the list traversal loop, any time we list_del()
something on the list.
Of course you are right there is no reason for this. Thanks.
From: David Miller <davem@davemloft.net> Date: 2011-02-13 19:02:35
From: John Fastabend <redacted>
Date: Mon, 31 Jan 2011 14:00:59 -0800
The app_data priority may not be the same for all net devices.
In order for stacks with application notifiers to identify the
specific net device dcb_app_type should be passed in the ptr.
This allows handlers to use dev_get_by_name() to pin priority
to net devices.
Signed-off-by: John Fastabend <redacted>