From patchwork Wed Oct 14 12:31:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 54914 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 3E03A23012 for ; Wed, 14 Oct 2015 12:32:08 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf25186493lbb.3 for ; Wed, 14 Oct 2015 05:32:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=ojegIdfyHg6WQKXqD3j9Vlf3aEAG9Osl3h23XHKnyQU=; b=PtU7uFkomDHMENA9QLHnJ6Q7Z2h/AYJ+TKYG0Bne2fVhPB+tbTbWhLk/cULcib1oFL Y72o/UB/klI/iywuTTk5xVS96wTlxZxXdFYVaZA8RRj3EDGrrEXEVzbh6ESmiMjMOcrF gmqFLe4E1tCLvpSOMGVpGgwZPvJojYCuUnNJ74q3/yxmBWS8cbSL/0nf8+dDpxP9xiYW gXrrHT8Moewyc7s76VfR6nBG4LNYoqmI32EyTpizWh6lSeaJkY4fHJUKmmgaCcvn7YqW +TupO2Xxju1oGOR4lievCF6nyKRnTBzox1Dr16oTpllK94pz+EQ+SiPFfaHX51VjYEtd H8Bg== X-Gm-Message-State: ALoCoQn1Rs07eu4Afb+mJ6+e0BaKL3A4B6DyA/aM/ubll+mr94jtuNicap+RQQkLmzi6uVjVN82B X-Received: by 10.180.10.135 with SMTP id i7mr821026wib.2.1444825927161; Wed, 14 Oct 2015 05:32:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.154.131 with SMTP id c125ls34730lfe.52.gmail; Wed, 14 Oct 2015 05:32:07 -0700 (PDT) X-Received: by 10.25.20.167 with SMTP id 39mr984657lfu.28.1444825927007; Wed, 14 Oct 2015 05:32:07 -0700 (PDT) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id al9si5407618lbc.51.2015.10.14.05.32.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 05:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lfaz124 with SMTP id z124so10457686lfa.1 for ; Wed, 14 Oct 2015 05:32:06 -0700 (PDT) X-Received: by 10.25.210.206 with SMTP id j197mr976763lfg.86.1444825926836; Wed, 14 Oct 2015 05:32:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2704268lbq; Wed, 14 Oct 2015 05:32:05 -0700 (PDT) X-Received: by 10.140.234.78 with SMTP id f75mr3814977qhc.20.1444825925765; Wed, 14 Oct 2015 05:32:05 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 143si7602691qhy.11.2015.10.14.05.32.05; Wed, 14 Oct 2015 05:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 129DD61C7B; Wed, 14 Oct 2015 12:32:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3852C61A20; Wed, 14 Oct 2015 12:31:58 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4E6D361B7D; Wed, 14 Oct 2015 12:31:42 +0000 (UTC) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by lists.linaro.org (Postfix) with ESMTPS id 5D8DC61A10 for ; Wed, 14 Oct 2015 12:31:41 +0000 (UTC) Received: by wieq12 with SMTP id q12so80808070wie.1 for ; Wed, 14 Oct 2015 05:31:40 -0700 (PDT) X-Received: by 10.194.78.34 with SMTP id y2mr3792676wjw.91.1444825898908; Wed, 14 Oct 2015 05:31:38 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id ly4sm9789462wjb.4.2015.10.14.05.31.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 05:31:38 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Wed, 14 Oct 2015 13:31:24 +0100 Message-Id: <1444825888-29381-2-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1444825888-29381-1-git-send-email-stuart.haslam@linaro.org> References: <1444825888-29381-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 1/5] linux-generic: pktio: increase MTU of loop interface X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 There's no need to enforce an artificial MTU for the loop interface. Previously this value was reported but not enforced. Signed-off-by: Stuart Haslam --- platform/linux-generic/pktio/loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 22f0475..4a66c1c 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -20,8 +20,6 @@ #include -/* MTU to be reported for the "loop" interface */ -#define PKTIO_LOOP_MTU 1500 /* MAC address for the "loop" interface */ static const char pktio_loop_mac[] = {0x02, 0xe9, 0x34, 0x80, 0x73, 0x01}; @@ -83,7 +81,8 @@ static int loopback_send(pktio_entry_t *pktio_entry, odp_packet_t pkt_tbl[], static int loopback_mtu_get(pktio_entry_t *pktio_entry ODP_UNUSED) { - return PKTIO_LOOP_MTU; + /* the loopback interface imposes no maximum transmit size limit */ + return INT_MAX; } static int loopback_mac_addr_get(pktio_entry_t *pktio_entry ODP_UNUSED,