diff mbox series

[OpenWrt-Devel,v2,1/2,netifd] system-linux: add 2.5 and 10G interface speed definitions

Message ID 20180627211433.26619-1-jwh@corp.connectbit.io
State Superseded
Delegated to: John Crispin
Headers show
Series [OpenWrt-Devel,v2,1/2,netifd] system-linux: add 2.5 and 10G interface speed definitions | expand

Commit Message

Joe Holden June 27, 2018, 9:14 p.m. UTC
From: Joe Holden <jwh@zorins.co.uk>

Signed-off-by: Joe Holden <jwh@zorins.co.uk>
---
 system-linux.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alberto Bursi June 27, 2018, 11:01 p.m. UTC | #1
On 27/06/2018 23:14, jwh@corp.connectbit.io wrote:
> From: Joe Holden <jwh@zorins.co.uk>
>
> Signed-off-by: Joe Holden <jwh@zorins.co.uk>
> ---
>   system-linux.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/system-linux.c b/system-linux.c
> index 0127b01..1330ea1 100644
> --- a/system-linux.c
> +++ b/system-linux.c
> @@ -1688,6 +1688,8 @@ static const struct {
>   	{ ADVERTISED_100baseT_Full, "100F" },
>   	{ ADVERTISED_1000baseT_Half, "1000H" },
>   	{ ADVERTISED_1000baseT_Full, "1000F" },
> +	{ ADVERTISED_2500baseX_Full, "2500F" },
> +	{ ADVERTISED_10000baseT_Full, "10000F" },
>   };
>   
>   static void system_add_link_modes(struct blob_buf *b, __u32 mask)
>

Is there a reason you didn't include the 5GbE too?
Afaik most consumer cards can do that too, and it is faster than 2.5.
There are some cards that do only up to 5GbE.
https://www.anandtech.com/show/11368/aquantia-launch-aqtion-5g25g1g-nics

(and note that I can find these cards on sale currently, also the 5GbE one)

-Alberto
Joe Holden June 28, 2018, 12:16 a.m. UTC | #2
On 28/06/2018 00:01, Alberto Bursi wrote:
> 
> 
> On 27/06/2018 23:14, jwh@corp.connectbit.io wrote:
>> From: Joe Holden <jwh@zorins.co.uk>
>>
>> Signed-off-by: Joe Holden <jwh@zorins.co.uk>
>> ---
>>   system-linux.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/system-linux.c b/system-linux.c
>> index 0127b01..1330ea1 100644
>> --- a/system-linux.c
>> +++ b/system-linux.c
>> @@ -1688,6 +1688,8 @@ static const struct {
>>   	{ ADVERTISED_100baseT_Full, "100F" },
>>   	{ ADVERTISED_1000baseT_Half, "1000H" },
>>   	{ ADVERTISED_1000baseT_Full, "1000F" },
>> +	{ ADVERTISED_2500baseX_Full, "2500F" },
>> +	{ ADVERTISED_10000baseT_Full, "10000F" },
>>   };
>>   
>>   static void system_add_link_modes(struct blob_buf *b, __u32 mask)
>>
> 
> Is there a reason you didn't include the 5GbE too?
> Afaik most consumer cards can do that too, and it is faster than 2.5.
> There are some cards that do only up to 5GbE.
> https://www.anandtech.com/show/11368/aquantia-launch-aqtion-5g25g1g-nics
> 
> (and note that I can find these cards on sale currently, also the 5GbE one)
> 
> -Alberto
> 

After a cursory look over supported hardware, I didn't see any off the
shelf 5G devices (haven't seen 5G in the wild yet either) - no actual
reason for not including it I guess
diff mbox series

Patch

diff --git a/system-linux.c b/system-linux.c
index 0127b01..1330ea1 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1688,6 +1688,8 @@  static const struct {
 	{ ADVERTISED_100baseT_Full, "100F" },
 	{ ADVERTISED_1000baseT_Half, "1000H" },
 	{ ADVERTISED_1000baseT_Full, "1000F" },
+	{ ADVERTISED_2500baseX_Full, "2500F" },
+	{ ADVERTISED_10000baseT_Full, "10000F" },
 };
 
 static void system_add_link_modes(struct blob_buf *b, __u32 mask)