net: dcb: fix small regression in __dcbnl_pg_setcfg()
Subsystems (2)
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
@@ -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,
Quoted 24 lines · John Fastabend
A small regression was introduced in the reply command of
dcbnl_pg_setcfg(). User space apps may be expecting theDCB_ATTR_PG_CFGattribute to be returned with the patch below TX or RX variants are returned.commit
7be994138b188387691322921c08e19bddf6d3c5Author: Thomas Graf <[email protected]> Date: Wed Jun 13 02:54:55 2012 +0000dcbnl: Shorten all command handling functions
This patch reverts this behavior and returns
DCB_ATTR_PG_CFGSigned-off-by John Fastabend <[email protected]>---
net/dcb/dcbnl.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)net/dcb/dcbnl.c +0
-0
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
David Miller
maintainerFrom: 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.
Quoted 6 lines · John Fastabend
A small regression was introduced in the reply command of
dcbnl_pg_setcfg(). User space apps may be expecting theDCB_ATTR_PG_CFGattribute 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 +0000dcbnl: Shorten all command handling functions
This patch reverts this behavior and returns
DCB_ATTR_PG_CFGSigned-off-by John Fastabend <[email protected]>
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 theDCB_ATTR_PG_CFGattribute to be returned with the patch below TX or RX variants are returned.commit
7be994138b188387691322921c08e19bddf6d3c5Author: 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_CFGSigned-off-by John Fastabend <[email protected]>Acked-by Thomas Graf <[email protected]>
Applied, thanks.