Skip to contentSkip to conversation

fcoe: correct checking for bonding

PATCH Jiri Pirko 4 participants 10 messages Mar 2, 2011 – Mar 14, 2011

Subsystems (4)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

Check for bonding master and refuse to use that.

---
 drivers/scsi/fcoe/fcoe.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +1 -3
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4
author
#1 lore raw

Or perhaps this should be applied to net-next?

Quoted 25 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +1 -3
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4
Acked-by
#2 lore raw
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

author
#3 lore raw
Quoted 21 lines · Thu, Mar 03, 2011 at 02:09:18AM CET, [email protected] wrote:
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 15 lines
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

What's the status of this? Maybe this should rather go thru net-next

Davem?

Thanks

Jirka

Quoted 3 lines
maintainer
#4 lore raw

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Mar 2011 13:01:10 +0100

Quoted 38 lines
Quoted 21 lines · Thu, Mar 03, 2011 at 02:09:18AM CET, [email protected] wrote:
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 15 lines
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

Quoted 1 line

What's the status of this? Maybe this should rather go thru net-next

Sure, I can take this. I'll look at it later.

#5 lore raw
Quoted 41 lines · David Miller

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Mar 2011 13:01:10 +0100

Quoted 38 lines
Quoted 36 lines · Thu, Mar 03, 2011 at 02:09:18AM CET, [email protected] wrote:
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

Quoted 3 lines
Quoted 1 line

What's the status of this? Maybe this should rather go thru net-next

Sure, I can take this. I'll look at it later.

Hi Dave,

I'd rather have this patch go through scsi-misc. Most, if not all,
libfc, libfcoe and fcoe patches have taken this path. The way it has been working is that I have been collecting fcoe patches and re-posting them to scsi-misc after I have reviewed them and done some basic testing.

Taking a patch like this through net{-next} could cause a merge
problem at Linus' level if a later patch makes it though the normal process and conflicts. This is what I want to avoid.

This patch, although appreciated, isn't critical. I have collected it
into my tree and will re-post it to scsi-misc. I see no reason to treat this patch differently from other patches.

Ultimately I just want things to go smoothly, so I'll leave it up to
James and you to figure out what to do.

Thanks, //Rob

author
#6 lore raw
Quoted 54 lines · Mon, Mar 14, 2011 at 08:04:07PM CET, [email protected] wrote:
Quoted 41 lines · David Miller

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Mar 2011 13:01:10 +0100

Quoted 38 lines
Quoted 36 lines · Thu, Mar 03, 2011 at 02:09:18AM CET, [email protected] wrote:
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

Quoted 3 lines
Quoted 1 line

What's the status of this? Maybe this should rather go thru net-next

Sure, I can take this. I'll look at it later.

Hi Dave,

I'd rather have this patch go through scsi-misc. Most, if not all,
libfc, libfcoe and fcoe patches have taken this path. The way it has been working is that I have been collecting fcoe patches and re-posting them to scsi-misc after I have reviewed them and done some basic testing.

Quoted 7 lines

Taking a patch like this through net{-next} could cause a merge
problem at Linus' level if a later patch makes it though the normal process and conflicts. This is what I want to avoid.

This patch, although appreciated, isn't critical. I have collected it
into my tree and will re-post it to scsi-misc. I see no reason to treat this patch differently from other patches.

Well I have another set of patches dependent on this one :(

Quoted 6 lines

Ultimately I just want things to go smoothly, so I'll leave it up to
James and you to figure out what to do.

Thanks, //Rob

maintainer
#7 lore raw

From: Jiri Pirko <[email protected]>
Date: Mon, 14 Mar 2011 20:22:02 +0100

Quoted 59 lines
Quoted 58 lines · Mon, Mar 14, 2011 at 08:04:07PM CET, [email protected] wrote:
Quoted 41 lines · David Miller

From: Jiri Pirko <[email protected]>
Date: Sat, 12 Mar 2011 13:01:10 +0100

Quoted 38 lines
Quoted 36 lines · Thu, Mar 03, 2011 at 02:09:18AM CET, [email protected] wrote:
Quoted 2 lines · Jiri Pirko

Or perhaps this should be applied to net-next?

I think this should go through scsi-misc as all the other libfc/libfcoe/fcoe patches do.

Quoted 15 lines
Quoted 14 lines · Wed, Mar 02, 2011 at 07:05:35AM CET, [email protected] wrote:

Check for bonding master and refuse to use that.

---
drivers/scsi/fcoe/fcoe.c | 4 +---

1 files changed, 1 insertions(+), 3 deletions(-)
drivers/scsi/fcoe/fcoe.c +0 -0
index 9f9600b..3becc6a 100644
@@ -285,9 +285,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
 	}
 
Quoted 11 lines
Quoted 11 lines
drivers/scsi/fcoe/fcoe.c +1 -3
 	/* Do not support for bonding device */
-	if ((netdev->priv_flags & IFF_MASTER_ALB) ||
-	    (netdev->priv_flags & IFF_SLAVE_INACTIVE) ||
-	    (netdev->priv_flags & IFF_MASTER_8023AD)) {
+	if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
 		FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
1.7.3.4

James, feel free to pick up this patch. I don't have anything in my fcoe tree right now that it would conflict with. I'll also put it in my tree and resend if you don't put it into scsi-misc directly.

Quoted 3 lines
Quoted 1 line

What's the status of this? Maybe this should rather go thru net-next

Sure, I can take this. I'll look at it later.

Hi Dave,

I'd rather have this patch go through scsi-misc. Most, if not all,
libfc, libfcoe and fcoe patches have taken this path. The way it has been working is that I have been collecting fcoe patches and re-posting them to scsi-misc after I have reviewed them and done some basic testing.

Taking a patch like this through net{-next} could cause a merge
problem at Linus' level if a later patch makes it though the normal process and conflicts. This is what I want to avoid.

Quoted 5 lines
Quoted 3 lines

This patch, although appreciated, isn't critical. I have collected it
into my tree and will re-post it to scsi-misc. I see no reason to treat this patch differently from other patches.

Well I have another set of patches dependent on this one :(

True, also I think Rob is overreacting.

Any merge problems created will be handled properly by Linus.

I recently changed the interface to ipv4 and ipv6 route lookups, and this required all kinds of changes to stuff under Infiniband and elsewhere. It's the only sane way to handle this kind of thing.

#8 lore raw
Quoted 13 lines · David Miller

From: Jiri Pirko <[email protected]>
Date: Mon, 14 Mar 2011 20:22:02 +0100

Quoted 10 lines
Quoted 7 lines · Mon, Mar 14, 2011 at 08:04:07PM CET, [email protected] wrote:

Taking a patch like this through net{-next} could cause a merge
problem at Linus' level if a later patch makes it though the normal process and conflicts. This is what I want to avoid.

This patch, although appreciated, isn't critical. I have collected it
into my tree and will re-post it to scsi-misc. I see no reason to treat this patch differently from other patches.

Well I have another set of patches dependent on this one :(

Quoted 7 lines

True, also I think Rob is overreacting.

Any merge problems created will be handled properly by Linus.

I recently changed the interface to ipv4 and ipv6 route lookups, and this required all kinds of changes to stuff under Infiniband and elsewhere. It's the only sane way to handle this kind of thing.

What Rob means is that fcoe has been in pretty heavy flux and so parallel patches can often cause non trivial merge nasties because of code motion. That said, I think we're pretty close to the end of the patch series for the merge window and it's a simple patch, so as long as it applies to net-next, I think we have an pretty low probability for non trivial merges. You can do it with my and Rob's acked-by.

James

maintainer
#9 lore raw

From: James Bottomley <[email protected]>
Date: Mon, 14 Mar 2011 15:53:35 -0500

Quoted 4 lines

That said, I think we're pretty close to the end of the patch series for the merge window and it's a simple patch, so as long as it applies to net-next, I think we have an pretty low probability for non trivial merges. You can do it with my and Rob's acked-by.

Ok, thanks.