ethtool: Add support for 1600G link modes
Subsystems (2)
cover ethtool: Add support for 1600G link modes
Hi,
This series by Yael updates the UAPI header copies from the kernel and adds support in ethtool for the new 1600G link modes.
Thanks,
Carolina
Yael Chemla (2):
update UAPI header copies
ethtool: add new 1600G modes to link mode tables
ethtool.8.in | 4 +++ ethtool.c | 12 +++++++ netlink/settings.c | 4 +++ uapi/linux/ethtool.h | 6 ++++ uapi/linux/ethtool_netlink_generated.h | 47 ++++++++++++++++++++++++++ uapi/linux/if_ether.h | 2 ++ uapi/linux/if_link.h | 3 ++ uapi/linux/stddef.h | 1 - 8 files changed, 78 insertions(+), 1 deletion(-)
Signature · 1 line
2.38.1
PATCH 1/2 update UAPI header copies
From: Yael Chemla <[email protected]>
Update to kernel commit 491c5dc98b84.
--- uapi/linux/ethtool.h | 6 ++++ uapi/linux/ethtool_netlink_generated.h | 47 ++++++++++++++++++++++++++ uapi/linux/if_ether.h | 2 ++ uapi/linux/if_link.h | 3 ++ uapi/linux/stddef.h | 1 - 5 files changed, 58 insertions(+), 1 deletion(-)
uapi/linux/ethtool.h +6 -0
@@ -2075,6 +2075,10 @@ enum ethtool_link_mode_bit_indices { ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT =118 , ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT =119 , ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT =120 , + ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT =121 , + ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT =122 , + ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT =123 , + ETHTOOL_LINK_MODE_1600000baseDR8_2_Full_BIT =124 ,/* must be last entry */ __ETHTOOL_LINK_MODE_MASK_NBITS
@@ -2188,6 +2192,7 @@ enum ethtool_link_mode_bit_indices {#define SPEED_200000 200000#define SPEED_400000 400000#define SPEED_800000 800000 +#define SPEED_1600000 1600000#define SPEED_UNKNOWN -1
@@ -2378,6 +2383,7 @@ enum {#define RXH_L4_B_0_1 (1 << 6)/* src port in case of TCP/UDP/SCTP */ #define RXH_L4_B_2_3 (1 << 7)/* dst port in case of TCP/UDP/SCTP */ #define RXH_GTP_TEID (1 << 8)/* teid in case of GTP */ +#define RXH_IP6_FL (1 << 9)/* IPv6 flow label */ #define RXH_DISCARD (1 << 31)#define RX_CLS_FLOW_DISC 0xffffffffffffffffULL
uapi/linux/ethtool_netlink_generated.h +47 -0
77 lines not on this page · raw message
uapi/linux/if_ether.h +2 -0
@@ -92,6 +92,7 @@#define ETH_P_ETHERCAT 0x88A4/* EtherCAT */ #define ETH_P_8021AD 0x88A8/* 802.1ad Service VLAN */ #define ETH_P_802_EX1 0x88B5/* 802.1 Local Experimental 1. */ +#define ETH_P_MXLGSW 0x88C3/* MaxLinear GSW DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_PREAUTH 0x88C7/* 802.11 Preauthentication */ #define ETH_P_TIPC 0x88CA/* TIPC */ #define ETH_P_LLDP 0x88CC/* Link Layer Discovery Protocol */
@@ -114,6 +115,7 @@#define ETH_P_QINQ1 0x9100/* deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_QINQ2 0x9200/* deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_QINQ3 0x9300/* deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ] */ +#define ETH_P_YT921X 0x9988/* Motorcomm YT921x DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_EDSA 0xDADA/* Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_DSA_8021Q 0xDADB/* Fake VLAN Header for DSA [ NOT AN OFFICIALLY REGISTERED ID ] */ #define ETH_P_DSA_A5PSW 0xE001/* A5PSW Tag Value [ NOT AN OFFICIALLY REGISTERED ID ] */
uapi/linux/if_link.h +3 -0
@@ -379,6 +379,8 @@ enum {IFLA_DPLL_PIN ,IFLA_MAX_PACING_OFFLOAD_HORIZON ,IFLA_NETNS_IMMUTABLE , +IFLA_HEADROOM , +IFLA_TAILROOM , __IFLA_MAX };
@@ -1562,6 +1564,7 @@ enum {IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE ,IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE ,IFLA_BOND_SLAVE_PRIO , +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO , __IFLA_BOND_SLAVE_MAX, };
uapi/linux/stddef.h +0 -1
@@ -3,7 +3,6 @@#define _LINUX_STDDEF_H -#ifndef __always_inline#define __always_inline __inline__#endif
Signature · 1 line
2.38.1
Re: [PATCH ethtool 1/2] update UAPI header copies
Quoted 6 lines · Carolina Jubran
From: Yael Chemla <[email protected]>
Update to kernel commit
491c5dc98b84.Signed-off-by Yael Chemla <[email protected]>Signed-off-by Carolina Jubran <[email protected]>
Quoted 8 lines
--- uapi/linux/ethtool.h | 6 ++++ uapi/linux/ethtool_netlink_generated.h | 47 ++++++++++++++++++++++++++ uapi/linux/if_ether.h | 2 ++ uapi/linux/if_link.h | 3 ++ uapi/linux/stddef.h | 1 - 5 files changed, 58 insertions(+), 1 deletion(-)
looks like there are no changes in "stddef.h", but its part of this patch.
Thanks,
Hariprasad k
Re: [PATCH ethtool 1/2] update UAPI header copies
Quoted 16 lines · Hariprasad Kelam
Quoted 6 lines · Carolina Jubran
From: Yael Chemla <[email protected]>
Update to kernel commit
491c5dc98b84.Signed-off-by Yael Chemla <[email protected]>Signed-off-by Carolina Jubran <[email protected]>Quoted 8 lines
--- uapi/linux/ethtool.h | 6 ++++ uapi/linux/ethtool_netlink_generated.h | 47 ++++++++++++++++++++++++++ uapi/linux/if_ether.h | 2 ++ uapi/linux/if_link.h | 3 ++ uapi/linux/stddef.h | 1 - 5 files changed, 58 insertions(+), 1 deletion(-)
Quoted 2 lines
looks like there are no changes in "
stddef.h", but its part of this patch.
It's whitespace only, AFAICS (one empty line removed).
Michal
PATCH 2/2 ethtool: add new 1600G modes to link mode tables
In reply to Carolina JubranFrom: Yael Chemla <[email protected]>
Add the 1600G link mode bits, include them in capability dumps and ioctl fallback, and update the man page.
--- ethtool.8.in | 4 ++++ ethtool.c | 12 ++++++++++++ netlink/settings.c | 4 ++++ 3 files changed, 20 insertions(+)
ethtool.8.in +4 -0
@@ -1013,6 +1013,10 @@ lB l lB. 0x400000000000000000000000000000 800000baseDR4_2 Full 0x800000000000000000000000000000 800000baseSR4 Full 0x1000000000000000000000000000000 800000baseVR4 Full +0x2000000000000000000000000000000 1600000baseCR8 Full +0x4000000000000000000000000000000 1600000baseKR8 Full +0x8000000000000000000000000000000 1600000baseDR8 Full +0x10000000000000000000000000000000 1600000baseDR8_2 Full .TE .TP .BI phyad \ N
ethtool.c +12 -0
@@ -538,6 +538,10 @@ static void init_global_link_mode_masks(void) ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT, ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT, ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT, + ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT, + ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT, + ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT, + ETHTOOL_LINK_MODE_1600000baseDR8_2_Full_BIT, };static const enum ethtool_link_mode_bit_indices additional_advertised_flags_bits[] = {
@@ -836,6 +840,14 @@ static void dump_link_caps(const char *prefix, const char *an_prefix, "800000baseSR4/Full" }, {0 , ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT, "800000baseVR4/Full" }, + { 0, ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT, + "1600000baseCR8/Full" }, + { 0, ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT, + "1600000baseKR8/Full" }, + { 0, ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT, + "1600000baseDR8/Full" }, + { 0, ETHTOOL_LINK_MODE_1600000baseDR8_2_Full_BIT, + "1600000baseDR8_2/Full" }, };int indent;int did1, new_line_pend;
netlink/settings.c +4 -0
@@ -196,6 +196,10 @@ static const struct link_mode_info link_modes[] = { [ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT] = __REAL(800000), [ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT] = __REAL(800000), [ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT] = __REAL(800000), + [ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT] = __REAL(1600000), + [ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT] = __REAL(1600000), + [ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT] = __REAL(1600000), + [ETHTOOL_LINK_MODE_1600000baseDR8_2_Full_BIT] = __REAL(1600000), };const unsigned int link_modes_count =ARRAY_SIZE (link_modes);
Signature · 1 line
2.38.1
Quoted 12 lines · Carolina Jubran
Hi,
This series by Yael updates the UAPI header copies from the kernel and adds support in ethtool for the new 1600G link modes.
Thanks,
CarolinaYael Chemla (2):
update UAPI header copies
ethtool: add new 1600G modes to link mode tables
Quoted 9 lines
ethtool.8.in | 4 +++ ethtool.c | 12 +++++++ netlink/settings.c | 4 +++ uapi/linux/ethtool.h | 6 ++++ uapi/linux/ethtool_netlink_generated.h | 47 ++++++++++++++++++++++++++ uapi/linux/if_ether.h | 2 ++ uapi/linux/if_link.h | 3 ++ uapi/linux/stddef.h | 1 - 8 files changed, 78 insertions(+), 1 deletion(-)
Hi,
Sending a kind reminder on this series.
Thanks!
Carolina