mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
scsi: target: cxgbit: add support for IEEE_8021QAZ_APP_SEL_STREAM selector
IEEE_8021QAZ_APP_SEL_STREAM is a valid selector for iSCSI connections, so add code to use IEEE_8021QAZ_APP_SEL_STREAM selector to get priority mask. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
5f9e832c13
commit
985eaf99eb
2 changed files with 7 additions and 4 deletions
|
@ -875,10 +875,12 @@ static u8 cxgbit_get_iscsi_dcb_priority(struct net_device *ndev, u16 local_port)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (caps & DCB_CAP_DCBX_VER_IEEE) {
|
if (caps & DCB_CAP_DCBX_VER_IEEE) {
|
||||||
iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_ANY;
|
iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_STREAM;
|
||||||
|
|
||||||
ret = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app);
|
ret = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app);
|
||||||
|
if (!ret) {
|
||||||
|
iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_ANY;
|
||||||
|
ret = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app);
|
||||||
|
}
|
||||||
} else if (caps & DCB_CAP_DCBX_VER_CEE) {
|
} else if (caps & DCB_CAP_DCBX_VER_CEE) {
|
||||||
iscsi_dcb_app.selector = DCB_APP_IDTYPE_PORTNUM;
|
iscsi_dcb_app.selector = DCB_APP_IDTYPE_PORTNUM;
|
||||||
|
|
||||||
|
|
|
@ -589,7 +589,8 @@ static void cxgbit_dcb_workfn(struct work_struct *work)
|
||||||
iscsi_app = &dcb_work->dcb_app;
|
iscsi_app = &dcb_work->dcb_app;
|
||||||
|
|
||||||
if (iscsi_app->dcbx & DCB_CAP_DCBX_VER_IEEE) {
|
if (iscsi_app->dcbx & DCB_CAP_DCBX_VER_IEEE) {
|
||||||
if (iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY)
|
if ((iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_STREAM) &&
|
||||||
|
(iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
priority = iscsi_app->app.priority;
|
priority = iscsi_app->app.priority;
|
||||||
|
|
Loading…
Add table
Reference in a new issue