From patchwork Tue Oct 27 16:42:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 55641 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1904478lbq; Tue, 27 Oct 2015 09:45:31 -0700 (PDT) X-Received: by 10.55.195.93 with SMTP id a90mr51668388qkj.31.1445964331637; Tue, 27 Oct 2015 09:45:31 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y35si37869294qgd.46.2015.10.27.09.45.31; Tue, 27 Oct 2015 09:45:31 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 16E5561FA2; Tue, 27 Oct 2015 16:45: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.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 F1DBF61E18; Tue, 27 Oct 2015 16:44:46 +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 BBD1E61E15; Tue, 27 Oct 2015 16:44:40 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by lists.linaro.org (Postfix) with ESMTPS id BBA0661E19 for ; Tue, 27 Oct 2015 16:42:35 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so171117879wic.0 for ; Tue, 27 Oct 2015 09:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=l/7OipgJp6AGJyh0M/0T8uZVNRp/kvGpsfGaRXNgN1M=; b=eJfyJFOrUQwpbRrs3tTaZM58J1akmqRLDt/Wp2Dfa4pnLgLGgQ7o25ZxznuJJrmBoY WYBtW1p69T5enjw8Lj97+n+9SvjMPoWOf+UBiTNh0LrqSeZamlCtgQaTaX5BLPZ/Wrng cmKGJZOAZIUZ6BsekWqZwp9eMaKep7uzJOwb5aqHvkFWdk5LXVIeZSLR6ncwVF+EjIX6 rE0arW8RglanqVylL9OC9zNYvDX4Pm9rx2DPgsKX3CaN5X/V/6oOlSgWmctf0P3obyBu KvQOju9pJ133L5C/d8BhOELUhyGZZ2SMcsd9DcsxfPemEQj8PJhLrxUTOcynlrEPhU6i HgRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=l/7OipgJp6AGJyh0M/0T8uZVNRp/kvGpsfGaRXNgN1M=; b=OURqatEAZtaLZd/J5dVNSVSa4WZuFRCBm4fAh2GSEdzITb+XkVD5pVW0x5MHfVdgLd qDRxbh8tTRcvoMWgnueDSAez0nHXzKtbnWjtJgstZk6xLtf5OAWqjTtreaKjnEA04LGb E9qGT+WLyesoXRmZNiWqeQvm/xlrXEALJBFHCVPIoHOeds29cZsA46lWoRi7bIcImTnZ RYi3+PniTJAKgyUZwPV546rYuw9PuLw9BvXg/nRp5n13RBCrNJpR7Fx59/npva5gJsnb yDfpqwC/KymnUK/82VJQ+GP6lCSS1C4gDcLtcnI6lm3h9jxr1Zg3Y7x5n5VGR673jf4N S1Bg== X-Gm-Message-State: ALoCoQkBnXNr/luunmEPIQX3IJqUNf+qWqgSEzCnxPapT0+4QQPaM7eTO3BzJk78vVhWL/lc6W6C X-Received: by 10.180.187.169 with SMTP id ft9mr23064992wic.23.1445964154892; Tue, 27 Oct 2015 09:42:34 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id q8sm18359749wiz.23.2015.10.27.09.42.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 09:42:34 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 27 Oct 2015 16:42:01 +0000 Message-Id: <1445964125-21658-2-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1445964125-21658-1-git-send-email-stuart.haslam@linaro.org> References: <1445964125-21658-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 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: "The OpenDataPlane \(ODP\) List" 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" 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 0d8dadd..ce19add 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}; @@ -86,7 +84,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,