提交 1d7406ce 编写于 作者: S Sudarsana Reddy Kalluru 提交者: David S. Miller

qed: Update app count when adding a new dcbx app entry to the table.

App count is not updated while adding new app entry to the dcbx app table.
Signed-off-by: NSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 59bcb797
...@@ -1707,8 +1707,10 @@ static int qed_dcbnl_setapp(struct qed_dev *cdev, ...@@ -1707,8 +1707,10 @@ static int qed_dcbnl_setapp(struct qed_dev *cdev,
if ((entry->ethtype == ethtype) && (entry->proto_id == idval)) if ((entry->ethtype == ethtype) && (entry->proto_id == idval))
break; break;
/* First empty slot */ /* First empty slot */
if (!entry->proto_id) if (!entry->proto_id) {
dcbx_set.config.params.num_app_entries++;
break; break;
}
} }
if (i == QED_DCBX_MAX_APP_PROTOCOL) { if (i == QED_DCBX_MAX_APP_PROTOCOL) {
...@@ -2228,8 +2230,10 @@ int qed_dcbnl_ieee_setapp(struct qed_dev *cdev, struct dcb_app *app) ...@@ -2228,8 +2230,10 @@ int qed_dcbnl_ieee_setapp(struct qed_dev *cdev, struct dcb_app *app)
(entry->proto_id == app->protocol)) (entry->proto_id == app->protocol))
break; break;
/* First empty slot */ /* First empty slot */
if (!entry->proto_id) if (!entry->proto_id) {
dcbx_set.config.params.num_app_entries++;
break; break;
}
} }
if (i == QED_DCBX_MAX_APP_PROTOCOL) { if (i == QED_DCBX_MAX_APP_PROTOCOL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册