From patchwork Fri Sep 4 09:55:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 53074 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 A34DC2159E for ; Fri, 4 Sep 2015 09:57:35 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf5132437lbb.2 for ; Fri, 04 Sep 2015 02:57:34 -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=16DCH2SiGU6+P///NXMOm/RfdlcKb6VVTUtoFkD6CgU=; b=NR5/NV7a+ZISU1iJ69teRxbqCtmAsH7piJO9Y32rCunQHLVYmnuO1zxwBbo/C/e5CC wfyAQEKsm+Loo8/HTXE+hkZZ80CorBWsGho59v+8Yz73Z2hNch+cq4dQbNThccMp+rLh PUzV3tuVteJ2EEe8u38CUqBiiL3GuiAVh3dtMwMEYpB3fnOXXeCnJ5CqHENOffoNCNkq QAXz+xh7KikQ/Dl0cLfr2nWHWByUBWP4AVxbAC4MsE4OUJJ8xMQ/eE62vF8VhFkZKst8 FnAnJKRr7zwjbQC1j9bIVtwXIXQ+g2CPrhllHh5D/aFrWE3+bnx8ohcej0Z8W+WQyVQo CobQ== X-Gm-Message-State: ALoCoQlApyyy1zyYokQVtVlZJFxd7jy/Cb6Qsx1EFA8/joqj7uq3GFmNfMnSojEHWjaUbr9B8jF6 X-Received: by 10.152.5.164 with SMTP id t4mr807356lat.0.1441360654657; Fri, 04 Sep 2015 02:57:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.133 with SMTP id b5ls309763laa.99.gmail; Fri, 04 Sep 2015 02:57:34 -0700 (PDT) X-Received: by 10.152.184.41 with SMTP id er9mr2872121lac.20.1441360654507; Fri, 04 Sep 2015 02:57:34 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id le1si43481lab.32.2015.09.04.02.57.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 02:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagj9 with SMTP id j9so10141278lag.2 for ; Fri, 04 Sep 2015 02:57:34 -0700 (PDT) X-Received: by 10.152.178.165 with SMTP id cz5mr2829546lac.29.1441360654067; Fri, 04 Sep 2015 02:57:34 -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.164.42 with SMTP id yn10csp1838236lbb; Fri, 4 Sep 2015 02:57:33 -0700 (PDT) X-Received: by 10.55.49.75 with SMTP id x72mr3637342qkx.45.1441360652851; Fri, 04 Sep 2015 02:57:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r137si2238576qha.16.2015.09.04.02.57.31; Fri, 04 Sep 2015 02:57:32 -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 C050861A0F; Fri, 4 Sep 2015 09:57:31 +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 E53CC61A2A; Fri, 4 Sep 2015 09:56: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 607E761A0F; Fri, 4 Sep 2015 09:56:53 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by lists.linaro.org (Postfix) with ESMTPS id C142D61840 for ; Fri, 4 Sep 2015 09:56:20 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so16822131wic.1 for ; Fri, 04 Sep 2015 02:56:20 -0700 (PDT) X-Received: by 10.180.96.164 with SMTP id dt4mr5980914wib.53.1441360580047; Fri, 04 Sep 2015 02:56:20 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id vl1sm3083000wjc.0.2015.09.04.02.56.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 02:56:19 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 4 Sep 2015 10:55:42 +0100 Message-Id: <1441360547-18999-2-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1441360547-18999-1-git-send-email-stuart.haslam@linaro.org> References: <1441360547-18999-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/7] 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.47 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 91c552b..d1d6031 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}; @@ -94,7 +92,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,