net: dcbnl: check correct ops in dcbnl_ieee_set()
Subsystems (2)
PATCH 1/1 net: dcbnl: check correct ops in dcbnl_ieee_set()
The incorrect ops routine was being tested for inDCB_ATTR_IEEE_PFC attributes. This patch corrects
it.
Currently, every driver implementing ieee_setets also implements ieee_setpfc so this bug is not actualized yet.
Signed-off-by John Fastabend <[email protected]>
---
net/dcb/dcbnl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/dcb/dcbnl.c +1 -1
@@ -1193,7 +1193,7 @@ static int dcbnl_ieee_set(struct net_device *netdev, struct nlattr **tb, goto err; } -if (ieee[DCB_ATTR_IEEE_PFC ] && ops->ieee_setets) { +if (ieee[DCB_ATTR_IEEE_PFC ] && ops->ieee_setpfc) {struct ieee_pfc *pfc =nla_data (ieee[DCB_ATTR_IEEE_PFC ]); err = ops->ieee_setpfc (netdev, pfc);if (err)
From: John Fastabend <[email protected]>
Date: Wed, 02 Mar 2011 12:35:33 -0800
Quoted 9 lines
The incorrect ops routine was being tested for in
DCB_ATTR_IEEE_PFCattributes. This patch corrects
it.Currently, every driver implementing
ieee_setetsalso implementsieee_setpfcso this bug is not actualized yet.Signed-off-by John Fastabend <[email protected]>
Applied, thanks John.