[PATCH] iscsid: Add support for net_prio cgroups

2012-02-24 Thread Mark Rustad
When net_prio cgroups are in use, let the priority be controlled by that mechanism, since it can handle changes dynamically, as opposed to the current method used with DCB. Continue to use the current DCB method when net_prio cgroups are not present. Signed-off-by: Mark Rustad mark.d.rus

[PATCH] iscsid: Add IEEE DCB support

2011-06-21 Thread Mark Rustad
in iscsid. This should still support CEE when run on kernels that do not support IEEE. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.c | 201 +++-- usr/dcb_app.h | 17 +++-- usr/dcbnl.h | 110

[PATCH V2] iscsid: Add IEEE DCB support

2011-06-21 Thread Mark Rustad
in iscsid. This should still support CEE when run on kernels that do not support IEEE. v2: Add omitted Tested-by credit. Tested-by: Ross Brattain ross.b.bratt...@intel.com Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.c | 201

[PATCH] Remove redundant initialization

2011-04-07 Thread Mark Rustad
The variable len in iscsi_io_tcp_poll is initialized in its declaration, but also initialized before use. Remove the initialization in the declaration. Signed-off-by: Mark Rustad mark.d.rus...@intel.com Tested-by: Ross Brattain ross.b.bratt...@intel.com --- usr/io.c |2 +- 1 files changed, 1

[PATCH] iscsi: Simplify serial number comparisons

2011-04-07 Thread Mark Rustad
Unsigned serial number comparison is very simple if you simply put the difference into a signed integer of the same size and then compare that value with zero. All the complexity and confusion fall away. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- include/scsi/iscsi_proto.h | 21

[Fcoe-patches,open-iscsi] Remove redundant initialization

2011-04-06 Thread Mark Rustad
The variable len in iscsi_io_tcp_poll is initialized in its declaration, but also initialized before use. Remove the initialization in the declaration. Signed-off-by: Mark Rustad mark.d.rus...@intel.com Tested-by: Ross Brattain ross.b.bratt...@intel.com --- usr/io.c |2 +- 1 files changed, 1

[PATCH] iscsid: Fix netdev check

2011-03-31 Thread Mark Rustad
from being set. Signed-off-by: Mark Rustad mark.d.rus...@intel.com Tested-by: Ross Brattain ross.b.bratt...@intel.com --- usr/io.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/io.c b/usr/io.c index 7d366c7..28d9168 100644 --- a/usr/io.c +++ b/usr/io.c @@ -470,7

[PATCH] iscsid: Fix netdev check

2011-03-31 Thread Mark Rustad
from being set. Signed-off-by: Mark Rustad mark.d.rus...@intel.com Tested-by: Ross Brattain ross.b.bratt...@intel.com --- usr/io.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/io.c b/usr/io.c index 7d366c7..28d9168 100644 --- a/usr/io.c +++ b/usr/io.c @@ -470,7

[v3 PATCH 0/4] Add initial DCB support

2011-02-02 Thread Mark Rustad
Removed a log_debug left over from testing Check the return on setsockopt and warn if it fails Added socket number to debug message Consistently return negative error code from get_link_ifname --- Mark Rustad (4): Add some consts to char * parameters

[v3 PATCH 1/4] Add some consts to char * parameters that are not changed

2011-02-02 Thread Mark Rustad
Add const to some char * parameters that are not changed by the called routine. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/sysfs.c |4 ++-- usr/sysfs.h |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/sysfs.c b/usr/sysfs.c index 8c176f0..cb9cf08

[v3 PATCH 3/4] Add dcb_app.c for DCB support

2011-02-02 Thread Mark Rustad
Add functions to obtain application priority mask from DCB in the kernel. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.c | 246 + 1 files changed, 246 insertions(+), 0 deletions(-) create mode 100644 usr/dcb_app.c

[v3 PATCH 4/4] Add initial DCB support

2011-02-02 Thread Mark Rustad
Add support for setting priorities provided by DCB in the kernel. This implementation does not track any priority changes which could occur over time. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/Makefile |4 +- usr/io.c | 120

[v2 PATCH 0/3] Add DCB support

2011-02-01 Thread Mark Rustad
not bound to a specific netdev --- Mark Rustad (3): Add dcb_app.h for DCB support Add dcb_app.c for DCB support Add initial DCB support usr/Makefile |4 + usr/dcb_app.c | 246 + usr/dcb_app.h | 34 usr

[PATCH 2/3] Add dcb_app.c for DCB support

2011-02-01 Thread Mark Rustad
Add functions to obtain application priority mask from DCB in the kernel. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.c | 246 + 1 files changed, 246 insertions(+), 0 deletions(-) create mode 100644 usr/dcb_app.c

[PATCH 3/3] Add initial DCB support

2011-02-01 Thread Mark Rustad
Add support for setting priorities provided by DCB in the kernel. This implementation does not track any priority changes which could occur over time. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/Makefile |4 ++ usr/io.c | 104

[PATCH 1/3] Add dcb_app.h for DCB support

2011-02-01 Thread Mark Rustad
Add header file with prototypes for functions in dcb_app.c. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.h | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 usr/dcb_app.h diff --git a/usr/dcb_app.h b/usr

[PATCH 1/3] Add dcb_app.h for DCB support

2011-01-31 Thread Mark Rustad
Add header file with prototypes for functions in dcb_app.c. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.h | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 usr/dcb_app.h diff --git a/usr/dcb_app.h b/usr

[PATCH 2/3] Add dcb_app.c for DCB support

2011-01-31 Thread Mark Rustad
Add functions to obtain application priority mask from DCB in the kernel. Signed-off-by: Mark Rustad mark.d.rus...@intel.com --- usr/dcb_app.c | 246 + 1 files changed, 246 insertions(+), 0 deletions(-) create mode 100644 usr/dcb_app.c