Skip to contentSkip to conversation

net: dcbnl: check correct ops in dcbnl_ieee_set()

PATCH Applied John Fastabend 2 participants 2 messages Mar 2, 2011

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

PATCH 1/1 net: dcbnl: check correct ops in dcbnl_ieee_set()

The incorrect ops routine was being tested for in
DCB_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.

---

 net/dcb/dcbnl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/dcb/dcbnl.c +1 -1
index d5074a5..c44348a 100644
@@ -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)
maintainer Applied
#1 lore raw

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_PFC attributes. This patch corrects
it.

Currently, every driver implementing ieee_setets also implements ieee_setpfc so this bug is not actualized yet.

Applied, thanks John.