On 02/01/2011 05:10 PM, Mark Rustad wrote:
+
+static void set_dcb_priority(struct iscsi_conn *conn, const char *devname)
+{
+ int pri_mask = 0;
+
+ pri_mask = get_dcb_app_pri_by_port(devname, ISCSI_DEFAULT_PORT);
+ if (pri_mask< 0)
+ log_debug(2, "Getting priority for %s returned %d",
+ devname, pri_mask);
+ else if (pri_mask == 0)
+ log_debug(2, "No priority for %s", devname);
+ else {
+ int pri = select_priority(conn, pri_mask);
+
+ log_debug(1, "Setting socket priority to %d", pri);
+ setsockopt(conn->socket_fd, SOL_SOCKET,
+ SO_PRIORITY,&pri, sizeof(pri));
This can fail, right? If this is the last version of the patches (am
going to wait for Shaym and Hannes to check it too), then I will just
add a patch over this to add a check and a error message on failure.
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.