Skip to content

Commit bb1dfef

Browse files
John Fastabenddavem330
authored andcommitted
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 7be9941 Author: Thomas Graf <tgraf@suug.ch> 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 Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f73332f commit bb1dfef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎net/dcb/dcbnl.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,7 @@ static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
852852
}
853853
}
854854

855-
return nla_put_u8(skb,
856-
(dir ? DCB_CMD_PGRX_SCFG : DCB_CMD_PGTX_SCFG), 0);
855+
return nla_put_u8(skb, DCB_ATTR_PG_CFG, 0);
857856
}
858857

859858
static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,

0 commit comments

Comments
 (0)