Skip to contentSkip to conversation

net: dcb: fix small regression in __dcbnl_pg_setcfg()

PATCH Applied John Fastabend 4 participants 5 messages Jun 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dcb: fix small regression in __dcbnl_pg_setcfg()

A small regression was introduced in the reply command of dcbnl_pg_setcfg(). User space apps may be expecting the DCB_ATTR_PG_CFG attribute to be returned with the patch below TX or RX variants are returned.

commit 7be994138b188387691322921c08e19bddf6d3c5

Author: Thomas Graf <[email protected]>
Date:   Wed Jun 13 02:54:55 2012 +0000

dcbnl: Shorten all command handling functions

This patch reverts this behavior and returns DCB_ATTR_PG_CFG

---

 net/dcb/dcbnl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/dcb/dcbnl.c +1 -2
index 0a36007..013da86 100644
@@ -852,8 +852,7 @@ static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
 		}
 	}
 
-	return nla_put_u8(skb,
-			  (dir ? DCB_CMD_PGRX_SCFG : DCB_CMD_PGTX_SCFG), 0);
+	return nla_put_u8(skb, DCB_ATTR_PG_CFG, 0);
 }
 
 static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
#1 lore raw
Quoted 24 lines · John Fastabend

A small regression was introduced in the reply command of dcbnl_pg_setcfg(). User space apps may be expecting the DCB_ATTR_PG_CFG attribute to be returned with the patch below TX or RX variants are returned.

commit 7be994138b188387691322921c08e19bddf6d3c5

Author: Thomas Graf <[email protected]>
Date:   Wed Jun 13 02:54:55 2012 +0000

dcbnl: Shorten all command handling functions

This patch reverts this behavior and returns DCB_ATTR_PG_CFG

---

 net/dcb/dcbnl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/dcb/dcbnl.c +0 -0
index 0a36007..013da86 100644

net/dcb/dcbnl.c static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, · line 857

Quoted 8 lines
net/dcb/dcbnl.c +1 -2
@@ -852,8 +852,7 @@ static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
 		}
 	}
 
-	return nla_put_u8(skb,
-			  (dir ? DCB_CMD_PGRX_SCFG : DCB_CMD_PGTX_SCFG), 0);
+	return nla_put_u8(skb, DCB_ATTR_PG_CFG, 0);
 }
 

ACK

Thanks John

maintainer
#2 lore raw

From: Thomas Graf <[email protected]>
Date: Thu, 21 Jun 2012 04:19:10 -0400

Quoted 1 line

ACK

Can I get a real "Acked-by: ..." so that it automatically gets picked up by patchwork? Thanks.

Acked-by on v1 1/1
#3 lore raw
In reply to John Fastabend
Quoted 6 lines · John Fastabend

A small regression was introduced in the reply command of dcbnl_pg_setcfg(). User space apps may be expecting the DCB_ATTR_PG_CFG attribute to be returned with the patch below TX or RX variants are returned.

commit 7be994138b188387691322921c08e19bddf6d3c5

Quoted 8 lines
Author: Thomas Graf <[email protected]>
Date:   Wed Jun 13 02:54:55 2012 +0000

dcbnl: Shorten all command handling functions

This patch reverts this behavior and returns DCB_ATTR_PG_CFG

maintainer Applied
#4 lore raw

From: Thomas Graf <[email protected]>
Date: Thu, 21 Jun 2012 06:52:45 -0400

Quoted 10 lines · John Fastabend
Quoted 9 lines

A small regression was introduced in the reply command of dcbnl_pg_setcfg(). User space apps may be expecting the DCB_ATTR_PG_CFG attribute to be returned with the patch below TX or RX variants are returned.

commit 7be994138b188387691322921c08e19bddf6d3c5

Author: Thomas Graf <[email protected]>
Date:   Wed Jun 13 02:54:55 2012 +0000
Quoted 7 lines
Quoted 5 lines

dcbnl: Shorten all command handling functions

This patch reverts this behavior and returns DCB_ATTR_PG_CFG

Applied, thanks.