From patchwork Fri Oct 23 09:16:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 55466 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id A269320581 for ; Fri, 23 Oct 2015 09:17:58 +0000 (UTC) Received: by lffv3 with SMTP id v3sf45590299lff.1 for ; Fri, 23 Oct 2015 02:17:57 -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=F2tXWhg9Dh2QPQ1QMIO4jAugnXhUIT8dX8cYGqCHdqJ3mzPcNHKW+CI5RU4ZAXvxUt 3Ctbo7eWMnS0dBJUZ+4OfziaTvarVbU55nguh7PRLcvxw0B6VczOD5NF3xy0oO635UCk yjBlkxMZbjO7rYPqV4v67qkdn8WwcFj9elbc3OCDhsortteJz04z741ZxHTJ1qLmIcE5 HKsvjzQZLymJh3+RNWKO2FdJ3nhcI940egJqpBdbs/yKHi0n0Gev4jb7YcvyLnBdiLCh 3za9Jsf3nJ+gybUngcKo/cRXj3+A/mCfiDYssUCwCNu0hIlYx1yhQcF4PL5l0ZTVauVR rFlw== X-Gm-Message-State: ALoCoQn/AWn8msbboDcOzLUFG9P6O+wl6PD19nTyRzHdZ7OKwYwcRARAgvNVEhltH9MLvN18ASjc X-Received: by 10.112.136.99 with SMTP id pz3mr4707639lbb.11.1445591877600; Fri, 23 Oct 2015 02:17:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.210.68 with SMTP id j65ls364941lfg.86.gmail; Fri, 23 Oct 2015 02:17:57 -0700 (PDT) X-Received: by 10.112.64.41 with SMTP id l9mr9717475lbs.32.1445591877465; Fri, 23 Oct 2015 02:17:57 -0700 (PDT) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com. [2a00:1450:4010:c07::22d]) by mx.google.com with ESMTPS id al9si12125525lbc.51.2015.10.23.02.17.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 02:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::22d as permitted sender) client-ip=2a00:1450:4010:c07::22d; Received: by lfbn126 with SMTP id n126so42134145lfb.2 for ; Fri, 23 Oct 2015 02:17:57 -0700 (PDT) X-Received: by 10.112.139.201 with SMTP id ra9mr10722679lbb.29.1445591877294; Fri, 23 Oct 2015 02:17:57 -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 w3csp1092684lbq; Fri, 23 Oct 2015 02:17:56 -0700 (PDT) X-Received: by 10.55.201.196 with SMTP id m65mr24622734qkl.26.1445591876319; Fri, 23 Oct 2015 02:17:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r81si17703029qkl.57.2015.10.23.02.17.56; Fri, 23 Oct 2015 02:17:56 -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 EB69862C91; Fri, 23 Oct 2015 09:17:55 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 9CC6F62C92; Fri, 23 Oct 2015 09:17:19 +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 65D3062C7A; Fri, 23 Oct 2015 09:17:15 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by lists.linaro.org (Postfix) with ESMTPS id 7B40B62C77 for ; Fri, 23 Oct 2015 09:17:14 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so22994014wic.0 for ; Fri, 23 Oct 2015 02:17:13 -0700 (PDT) X-Received: by 10.194.234.70 with SMTP id uc6mr3374773wjc.42.1445591833766; Fri, 23 Oct 2015 02:17:13 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id jt9sm6422177wjc.24.2015.10.23.02.17.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Oct 2015 02:17:13 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 23 Oct 2015 10:16:48 +0100 Message-Id: <1445591812-10857-2-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1445591812-10857-1-git-send-email-stuart.haslam@linaro.org> References: <1445591812-10857-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 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-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 2a00:1450:4010:c07::22d as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com 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,