Commit a815286b authored by Anish Bhatt's avatar Anish Bhatt Committed by David S. Miller

cxgb4 : Fix bug in DCB app deletion

Unlike CEE, IEEE has a bespoke app delete call and does not rely on priority
for app deletion

Fixes : 2376c879 ('cxgb4 : Improve handling of DCB negotiation or loss
 thereof')
Signed-off-by: default avatarAnish Bhatt <anish@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cfdf1e1b
...@@ -79,8 +79,9 @@ static void cxgb4_dcb_cleanup_apps(struct net_device *dev) ...@@ -79,8 +79,9 @@ static void cxgb4_dcb_cleanup_apps(struct net_device *dev)
app.protocol = dcb->app_priority[i].protocolid; app.protocol = dcb->app_priority[i].protocolid;
if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) { if (dcb->dcb_version == FW_PORT_DCB_VER_IEEE) {
app.priority = dcb->app_priority[i].user_prio_map;
app.selector = dcb->app_priority[i].sel_field + 1; app.selector = dcb->app_priority[i].sel_field + 1;
err = dcb_ieee_setapp(dev, &app); err = dcb_ieee_delapp(dev, &app);
} else { } else {
app.selector = !!(dcb->app_priority[i].sel_field); app.selector = !!(dcb->app_priority[i].sel_field);
err = dcb_setapp(dev, &app); err = dcb_setapp(dev, &app);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment