Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75093C04AB6 for ; Fri, 31 May 2019 13:58:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C779269EF for ; Fri, 31 May 2019 13:58:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="c7Kd/2Em" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbfEaN6w (ORCPT ); Fri, 31 May 2019 09:58:52 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44694 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbfEaN6w (ORCPT ); Fri, 31 May 2019 09:58:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4dndL24LWcAh0B46AvE4n/1VGXV5h2xmIR/lcaAAIgM=; b=c7Kd/2Emyq0+aPKY2ZgSkiqEqO Fq1H0OxrndIdlFGC3s2AlOhZmVl/McONnFgqC/1nGG4qPnpeTqUyXY+FUKLVzX5DsBa9mUT3lv6Vp T2srOI/H4/VlyluewlfIWhUxCB9RWEDFyM04lumvZ8skoLu/7opPFf8jnqmbRXV8bi7w=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hWi3F-0006Bn-J7; Fri, 31 May 2019 15:58:33 +0200 From: Andrew Lunn To: linville@redhat.com Cc: netdev , Andrew Lunn Subject: [PATCH v2 1/2] ethtool: sync ethtool-copy.h with linux-next from 30/05/2019 Date: Fri, 31 May 2019 15:57:47 +0200 Message-Id: <20190531135748.23740-2-andrew@lunn.ch> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190531135748.23740-1-andrew@lunn.ch> References: <20190531135748.23740-1-andrew@lunn.ch> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Sync ethtool-copy.h with linux-next from 22/05/2019. This provides access to the new link modes for 100BaseT1 and 1000BaseT1. Signed-off-by: Andrew Lunn --- ethtool-copy.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ethtool-copy.h b/ethtool-copy.h index 92ab10d65fc9..ad16e8f9c290 100644 --- a/ethtool-copy.h +++ b/ethtool-copy.h @@ -1481,6 +1481,8 @@ enum ethtool_link_mode_bit_indices { ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64, ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 65, ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 66, + ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 67, + ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 68, /* must be last entry */ __ETHTOOL_LINK_MODE_MASK_NBITS @@ -1597,7 +1599,7 @@ enum ethtool_link_mode_bit_indices { static __inline__ int ethtool_validate_speed(__u32 speed) { - return speed <= INT_MAX || speed == SPEED_UNKNOWN; + return speed <= INT_MAX || speed == (__u32)SPEED_UNKNOWN; } /* Duplex, half or full. */ @@ -1710,6 +1712,9 @@ static __inline__ int ethtool_validate_duplex(__u8 duplex) #define ETH_MODULE_SFF_8436 0x4 #define ETH_MODULE_SFF_8436_LEN 256 +#define ETH_MODULE_SFF_8636_MAX_LEN 640 +#define ETH_MODULE_SFF_8436_MAX_LEN 640 + /* Reset flags */ /* The reset() operation must clear the flags for the components which * were actually reset. On successful return, the flags indicate the -- 2.20.1