Received: by 10.192.165.148 with SMTP id m20csp3515717imm; Mon, 7 May 2018 13:44:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyoqMUxAHtUDZUc8GyPhDMop/DB5wWSBif/t2PwPMdnzB+MorptaXh7lg6b7zykQNsfLRe X-Received: by 2002:a9d:72d:: with SMTP id 42-v6mr12813210ote.180.1525725865213; Mon, 07 May 2018 13:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525725865; cv=none; d=google.com; s=arc-20160816; b=XVcwO+e2vf1seLbHVXqCYcIyzkwprh07+gIgzb3sOzUS3tT2D+G1VArYmqZC4xK8BM NAsspk1r9zaxo0FZyjr0O3rxpKqa/f2u/cg8Qa27GCKLQpUdz0yquW9jzpJ4qHuuKv1P ao5HDJwysehxH+Hx6u1SzzQx6e6r7nRokpLxozb614ittPMV6phQ8uOPv6nIjeQuhk4V Xzt6OWdOFjC9FoYxb0GbXU+9rhpx6808YRsEkflWKX0qFeKI+1IV9txqsRyhdnU1q/Uu UVhU8y2oLXnXl80E2dgy3LiD67b98/Qd+bzy7dIzB8LE4gpjoIi0b4KXPxtrhXE/VHaD XFTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=oVWSUh459UYKhB8bNQsUJi+bGw1TDvTMhrmzkjfWvC8=; b=i4jRhy7gmDY2EKqr2CW/6GJWcXaLzOb9tFeMqHhULuJme0qwtYu5XzqsHVc5X8s+96 mDPjOtGYu2pILmoxzdMDPbWwYR8fmBYM8lYZ7a4SP8v0TbgdUoLkM9Ix+QQN/2tx+THr ItrW3KKbnNYgYUQCYDfcHZKdanWKn1Tf+1VprGAS8IxURFAUWkwfkwFK/9Hnpv/o2die 8AYgANC4DEA7bQdXhY3/Uo/4O+5GT7FDCZ7hWhawM5GIo4gaHljGd6tWv7MkbhDOW1u5 Jf7+v7jYb6l/gHNwAA1hWK4+GOGwXm4tTS3QY/spEu4HWFBlwk3VR7c8HWxj7yF3n4Mx K8wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MwqByNyU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r125-v6si4398081oif.374.2018.05.07.13.44.11; Mon, 07 May 2018 13:44:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MwqByNyU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753130AbeEGUme (ORCPT + 99 others); Mon, 7 May 2018 16:42:34 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:43962 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753101AbeEGUmc (ORCPT ); Mon, 7 May 2018 16:42:32 -0400 Received: by mail-pl0-f68.google.com with SMTP id a39-v6so754080pla.10; Mon, 07 May 2018 13:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=oVWSUh459UYKhB8bNQsUJi+bGw1TDvTMhrmzkjfWvC8=; b=MwqByNyUmURQ64TQ4h46Y9McPq/3uXM7gaBmr1E7jIGeZcvJMALJs/H1/1xv85Gh7l djf+ljWuuU94YLlNJn5y4FKApUPRt51UmPPymQm3LVu31DxFikcbd/iRzOKgyMQK6ul6 KdWsCbxDA9eU1ZujSSut5AWOQ+D9612dXpgUJ1FRW/Tvr9QdYNlovFHBqwV1yBI+iP5F 0NWPh3xWkYUnBWYxORbdqpo9oJKj9EVpztn7XN5Io3649VGd1pM0SIr2sVhISPlgF/eI toZujpbCtVu1jiMTi8mRJ3NHJpC1RHdS8ktzPIK/pjFEQgIz9JsGRIgezYpDXniHqnA7 804w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=oVWSUh459UYKhB8bNQsUJi+bGw1TDvTMhrmzkjfWvC8=; b=Ju7dnGEW97r6Z79L1kPVl/MYFlGblpaT+7Y4H6De2gxp+WNExGnG1tSukamZrAnmqb NiR9lzmc9YI8+iM7g5SAQQtxE6PNbVttv2zocuhdXlqrVRPjaK8fyayC5gDTp/QFYj/C XnnmiLGG6cv2WbsUZD68xqIFk6kXNGW37/dF+E8+zFf/QpOr9Gjjuvr9ZfOAZGxJdPIt Fv7EAiit72M9TNWASl1LB53JX0mAkYwafK44OwCirK42PXCQEkk7Z8gbBEi/vaxQ3pL8 HR+uCc4DidsSlx0BBzy9J8EQw209cixfyaV/LaIgltHtR8X0tHWc6+A6HE8csaCp8Z0+ Tazw== X-Gm-Message-State: ALQs6tDYnKOE4BTTmBa7SyGfHmireNG+Au6pRQ9ynEd7WNgsSTdy+xhr pfS87tPj8jqSbVqmvZx5UAQ= X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr38909132plg.361.1525725752074; Mon, 07 May 2018 13:42:32 -0700 (PDT) Received: from [192.168.0.16] (67-5-146-204.ptld.qwest.net. [67.5.146.204]) by smtp.gmail.com with ESMTPSA id k13sm54218282pfj.186.2018.05.07.13.42.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 13:42:31 -0700 (PDT) Subject: Re: [ovs-dev] [PATCH] openvswitch: fix internal_dev_xmit()'s return type To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: dev@openvswitch.org, netdev@vger.kernel.org, "David S. Miller" References: <20180424131747.4711-1-luc.vanoostenryck@gmail.com> From: Gregory Rose Message-ID: Date: Mon, 7 May 2018 13:42:30 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424131747.4711-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/24/2018 6:17 AM, Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning 'netdev_tx_t' in this driver too. > > Signed-off-by: Luc Van Oostenryck > --- > net/openvswitch/vport-internal_dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c > index bb95c43aa..3ea55618e 100644 > --- a/net/openvswitch/vport-internal_dev.c > +++ b/net/openvswitch/vport-internal_dev.c > @@ -43,7 +43,7 @@ static struct internal_dev *internal_dev_priv(struct net_device *netdev) > } > > /* Called with rcu_read_lock_bh. */ > -static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) > +static netdev_tx_t internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) > { > int len, err; > LGTM Reviewed-by: Greg Rose