Skip to content

Commit af3fce9

Browse files
Jiawen WuPaolo Abeni
authored andcommitted
net: txgbe: expend SW-FW mailbox buffer size to identify QSFP module
Recent firmware updates introduce additional fields in the mailbox message to provide more information for identifying 40G and 100G QSFP modules. To accommodate these new fields, expand the mailbox buffer size by 4 bytes. Without this change, drivers built against the updated firmware cannot properly identify modules due to mismatched mailbox message lengths. The old firmware version that used the smaller mailbox buffer has never been publicly released, so there are no backward-compatibility concerns. Signed-off-by: Jiawen Wu <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 00922ee commit af3fce9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/wangxun/txgbe/txgbe_type.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ struct txgbe_sfp_id {
352352
u8 vendor_oui0; /* A0H 0x25 */
353353
u8 vendor_oui1; /* A0H 0x26 */
354354
u8 vendor_oui2; /* A0H 0x27 */
355-
u8 reserved[3];
355+
u8 transceiver_type; /* A0H 0x83 */
356+
u8 sff_opt1; /* A0H 0xC0 */
357+
u8 reserved[5];
356358
};
357359

358360
struct txgbe_hic_i2c_read {

0 commit comments

Comments
 (0)