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.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
John Fastabend 2011-03-02 10:35:33 +00:00 коммит произвёл David S. Miller
Родитель 88d2d28b18
Коммит f3d7bc57c7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1193,7 +1193,7 @@ static int dcbnl_ieee_set(struct net_device *netdev, struct nlattr **tb,
goto err; 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]); struct ieee_pfc *pfc = nla_data(ieee[DCB_ATTR_IEEE_PFC]);
err = ops->ieee_setpfc(netdev, pfc); err = ops->ieee_setpfc(netdev, pfc);
if (err) if (err)