From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 9B1DA1B464 for ; Mon, 6 Aug 2018 14:06:42 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id b11-v6so6770218pfo.3 for ; Mon, 06 Aug 2018 05:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+Fke9Cs0E+r0W2E0UTi3cIeHtVYpDbGX41kjzAWrfQY=; b=Tw+KgBsHb6UoC1WU3vrTBk4TYmmdi1tiTpKXcMr8gaGDAnsP4QYKGieu1IHKQXqo7c 5A5alw7pr54SeCncWc/UHc0Go+fwxVB7iNZA7COV9/XJMDnHAQREAzKNUvZkLZzAaf0I VhEB3jXnbmXZ2cHxL2IdzqEDMjW5jwCZRgD1oUPBxWwOj6wS67FaTopThXpgut0GepAp s1h25cvKE7inMFPzPCLvLcl1xX7D9QGiQ2nFb6gQ850fe5/t11JaHvl+ZRBygA2MwHia w4/Mc/vpZhwEVccMdEMp7zk4NE41JRhLl1Bymr+FtT6i9c3ThGEUI3K1TUGFdMmyyMQJ j1iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+Fke9Cs0E+r0W2E0UTi3cIeHtVYpDbGX41kjzAWrfQY=; b=TLLXxxylT6TgCn/5B6/SGduG8wHr13Hgf8hfcvSS1pxbLLbB2eNNhfD9FvapEn1Hx/ sH1vPCN3Ncq/YNEJx5lqovRTWaQMx5t3A+ILNta8foGeYSGUhJWjU+5Jx2GH0hd60tWb /lTwpCSpZVRZH+XRwIa/YZQTyJA1NYW4k/TxadED6NHo0uFLq+dA0BQe2YawWvk4S8kA uRyRT+mgC9nSM6rjDNOIZpAHa4iJ+FZg/UgB7aOzk4XqzorrYlapxHb2ghm3lNSVmChg v+k/wjXvrBzIVxRbtFhhvlkxEs2nBOBe55UhB+UL38T9LNLEQfq831vyV+0VifaX1Tb7 4QYA== X-Gm-Message-State: AOUpUlFrMCsTh5ZWBIVK2bmX7vpEsO03Tac0BRhECksMWp/RoMi0oeRZ nkLsp+WSK3uQLzmWgD6Stvs= X-Google-Smtp-Source: AAOMgpfXLe8uqXtCsChkZOFJxiFQ2I0ZwmPLnlDjHES6FBy7OLUfZJotUAG8UvsWPXwVRaHDHQwbgQ== X-Received: by 2002:a62:2bc8:: with SMTP id r191-v6mr9228598pfr.164.1533557201777; Mon, 06 Aug 2018 05:06:41 -0700 (PDT) Received: from localhost.localdomain ([43.245.220.91]) by smtp.gmail.com with ESMTPSA id d22-v6sm22480426pfk.69.2018.08.06.05.06.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 05:06:41 -0700 (PDT) From: Drocula To: Ferruh Yigit Cc: dev@dpdk.org, Drocula Date: Mon, 6 Aug 2018 12:06:07 +0000 Message-Id: <1533557167-7390-1-git-send-email-quzeyao@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] kni: fix build on RHEL 7.5 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 12:06:42 -0000 Signed-off-by: Drocula --- kernel/linux/kni/ethtool/igb/kcompat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h index 40a8d99..ae1b530 100644 --- a/kernel/linux/kni/ethtool/igb/kcompat.h +++ b/kernel/linux/kni/ethtool/igb/kcompat.h @@ -3929,6 +3929,11 @@ static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(struct sk_buff *skb, #endif #endif +#if (defined(RHEL_RELEASE_CODE) && \ + (RHEL_RELEASE_VERSION(7, 5) <= RHEL_RELEASE_CODE)) +#define ndo_change_mtu ndo_change_mtu_rh74 +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) #define HAVE_PCI_ENABLE_MSIX #endif -- 1.8.3.1