qed: Set selection-field while configuring the app entry in ieee mode.
Management firmware requires the selection-field (SF) to be set for configuring the application/protocol entry in IEEE mode. Without this setting, the app entry will be configured incorrectly in MFW. Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5fe118c9fd
commit
5ec5dfa4d2
|
@ -1063,23 +1063,31 @@ qed_dcbx_set_app_data(struct qed_hwfn *p_hwfn,
|
|||
for (i = 0; i < DCBX_MAX_APP_PROTOCOL; i++) {
|
||||
entry = &p_app->app_pri_tbl[i].entry;
|
||||
if (ieee) {
|
||||
*entry &= ~DCBX_APP_SF_IEEE_MASK;
|
||||
*entry &= ~(DCBX_APP_SF_IEEE_MASK | DCBX_APP_SF_MASK);
|
||||
switch (p_params->app_entry[i].sf_ieee) {
|
||||
case QED_DCBX_SF_IEEE_ETHTYPE:
|
||||
*entry |= ((u32)DCBX_APP_SF_IEEE_ETHTYPE <<
|
||||
DCBX_APP_SF_IEEE_SHIFT);
|
||||
*entry |= ((u32)DCBX_APP_SF_ETHTYPE <<
|
||||
DCBX_APP_SF_SHIFT);
|
||||
break;
|
||||
case QED_DCBX_SF_IEEE_TCP_PORT:
|
||||
*entry |= ((u32)DCBX_APP_SF_IEEE_TCP_PORT <<
|
||||
DCBX_APP_SF_IEEE_SHIFT);
|
||||
*entry |= ((u32)DCBX_APP_SF_PORT <<
|
||||
DCBX_APP_SF_SHIFT);
|
||||
break;
|
||||
case QED_DCBX_SF_IEEE_UDP_PORT:
|
||||
*entry |= ((u32)DCBX_APP_SF_IEEE_UDP_PORT <<
|
||||
DCBX_APP_SF_IEEE_SHIFT);
|
||||
*entry |= ((u32)DCBX_APP_SF_PORT <<
|
||||
DCBX_APP_SF_SHIFT);
|
||||
break;
|
||||
case QED_DCBX_SF_IEEE_TCP_UDP_PORT:
|
||||
*entry |= ((u32)DCBX_APP_SF_IEEE_TCP_UDP_PORT <<
|
||||
DCBX_APP_SF_IEEE_SHIFT);
|
||||
*entry |= ((u32)DCBX_APP_SF_PORT <<
|
||||
DCBX_APP_SF_SHIFT);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue