forked from Minki/linux
qed: Add missing port-mode
The 'MODULE_FIBER' value replaced several other FIBER values in newer management firmware images, so existing code would fail to properly reflect its mode. Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db511c37d4
commit
b639f19721
@ -3700,6 +3700,7 @@ struct public_port {
|
||||
#define MEDIA_DA_TWINAX 0x3
|
||||
#define MEDIA_BASE_T 0x4
|
||||
#define MEDIA_SFP_1G_FIBER 0x5
|
||||
#define MEDIA_MODULE_FIBER 0x6
|
||||
#define MEDIA_KR 0xf0
|
||||
#define MEDIA_NOT_PRESENT 0xff
|
||||
|
||||
|
@ -1085,6 +1085,7 @@ static int qed_get_port_type(u32 media_type)
|
||||
case MEDIA_SFPP_10G_FIBER:
|
||||
case MEDIA_SFP_1G_FIBER:
|
||||
case MEDIA_XFP_FIBER:
|
||||
case MEDIA_MODULE_FIBER:
|
||||
case MEDIA_KR:
|
||||
port_type = PORT_FIBRE;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user