lkml.org 
[lkml]   [2020]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH net-next v1 5/5] hinic: add support to get eeprom information
From
Date
On 2020/6/23 6:15, Jakub Kicinski wrote:
> On Sat, 20 Jun 2020 17:42:58 +0800 Luo bin wrote:
>> diff --git a/drivers/net/ethernet/huawei/hinic/hinic_port.h b/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> index 5c916875f295..0d0354241345 100644
>> --- a/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> +++ b/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> @@ -677,6 +677,37 @@ struct hinic_led_info {
>> u8 reset;
>> };
>>
>> +#define MODULE_TYPE_SFP 0x3
>> +#define MODULE_TYPE_QSFP28 0x11
>> +#define MODULE_TYPE_QSFP 0x0C
>> +#define MODULE_TYPE_QSFP_PLUS 0x0D
>> +
>> +#define STD_SFP_INFO_MAX_SIZE 640
>
> Please use the existing defines, e.g. from #include <linux/sfp.h>
> there is no need for every driver to redefine those constants.
> .
>
Will fix. Thanks for your review.

\
 
 \ /
  Last update: 2020-06-23 08:49    [W:1.210 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site