Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: cxgb4i: 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>

authored by

Varun Prakash and committed by
Martin K. Petersen
152e30fc 22c2f35f

+7 -2
+7 -2
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
··· 1665 1665 return 0; 1666 1666 1667 1667 if (caps & DCB_CAP_DCBX_VER_IEEE) { 1668 - iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_ANY; 1668 + iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_STREAM; 1669 1669 rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); 1670 + if (!rv) { 1671 + iscsi_dcb_app.selector = IEEE_8021QAZ_APP_SEL_ANY; 1672 + rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); 1673 + } 1670 1674 } else if (caps & DCB_CAP_DCBX_VER_CEE) { 1671 1675 iscsi_dcb_app.selector = DCB_APP_IDTYPE_PORTNUM; 1672 1676 rv = dcb_getapp(ndev, &iscsi_dcb_app); ··· 2255 2251 u8 priority; 2256 2252 2257 2253 if (iscsi_app->dcbx & DCB_CAP_DCBX_VER_IEEE) { 2258 - if (iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY) 2254 + if ((iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_STREAM) && 2255 + (iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY)) 2259 2256 return NOTIFY_DONE; 2260 2257 2261 2258 priority = iscsi_app->app.priority;